Fork me on GitHub
Weclome Back

Keithxodoy


  • 首页

  • 标签

  • 分类

  • 归档

  • 搜索

Python_Spider_xpath

发表于 2018-07-25 | 分类于 Python | 评论数:

xpath 和 lxml

  • xpath
    • 一门从html中提取数据的语言
阅读全文 »

Python_Spider_encode

发表于 2018-07-25 | 分类于 Python | 评论数:
编码格式

a=u'string' :u 代表 unicode
a.encode('utf-8') : utf-8格式
a.decode('utf-8') : 从utf-8转至Unicode格式

from sys import argv
script,filename = argv 获取文件信息

阅读全文 »

Python_Chart

发表于 2018-07-25 | 分类于 Python | 评论数:

1、渲染图表

1
2
3
4
5
6
from pyecharts import Bar

bar = Bar("我的第一个图表", "这里是副标题")
bar.add("服装", ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", ], [5, 20, 36, 10, 75])
# bar.print_echarts_options() # 该行只为了打印配置项,方便调试时使用
bar.render() # 生成本地 HTML 文件
阅读全文 »

MySQL

发表于 2018-07-25 | 分类于 Database | 评论数:

基本概念

  • 数据库(database)
  • 集合(collection)
  • 文档(document)
    • 数据库和集合在MongoDB中不需要手动创建
      • 当创建文档时,如果文档所在集合或数据库不存在会自动创建数据库和集合
阅读全文 »

Python_cookbook

发表于 2018-07-25 | 分类于 Python | 评论数:

解决方案

阅读全文 »

Python_terms

发表于 2018-07-25 | 分类于 Python | 评论数:
  • 1.多态:可以对不同类的对象使用相同的操作
  • 2.headers=headers :反爬措施,防止浏览器以为是机器在工作
  • 3.对象的状态由它的特性(比如名称)来描述
  • 4.所有的对象都属于某一个类,称为类的实例
  • 5.self参数用于对象自身的引用,实例化对象将自己作为第一个参
    数传入函数中,例如 若 foo为Person的实例,则foo.greet()可以看作Person.greet(foo)的简写

Python进阶

发表于 2018-07-25 | 分类于 Python | 评论数:

函数式编程

阅读全文 »

Python_Compute

发表于 2018-07-25 | 分类于 Python | 评论数:

帮助函数 S.method?

Pandas

1.什么是Series

简单来说:一维带标签(索引)的数组

阅读全文 »

Python_Spider_Tools

发表于 2018-07-25 | 分类于 Python | 评论数:

爬虫的分类

  • 1.通用爬虫
  • 2.聚焦网络爬虫
  • 3.增量式网络爬虫
  • 4.深层网络爬虫
阅读全文 »

Python_Spider_requests

发表于 2018-07-25 | 分类于 Python | 评论数:

requests

image

阅读全文 »
12345
Keithxodoy

Keithxodoy

The trouble with the world is that the stupid are sure and the intelligent are full of doubt.

48 日志
16 分类
27 标签
RSS
GitHub
© 2018 Keithxodoy
博客全站共76.0k字