摘要: 用命令先生成自己的爬虫框架 阅读全文
posted @ 2019-01-09 23:04 青春叛逆者 阅读(335) 评论(0) 推荐(0) 编辑
摘要: url: 就是需要请求,并进行下一步处理的url callback: 指定该请求返回的Response,由那个函数来处理。 method: 请求一般不需要指定,默认GET方法,可设置为"GET", "POST", "PUT"等,且保证字符串大写 headers: 请求时,包含的头文件。一般不需要。内容一般如下: # 自己写过爬虫的肯定知道 Host: med... 阅读全文
posted @ 2019-01-09 22:54 青春叛逆者 阅读(284) 评论(0) 推荐(0) 编辑
摘要: #在python console 里面进行测试a=[1,2,3,4,5,6] b=[0.13,0.78,0.6,0.92,0.66,0.33] zip(a,b) Out[4]: for i in zip(a,b): print(i) (1, 0.13) (2, 0.78) (3, 0.6) (4, 0.92) (5, 0.66) (6, 0.33) for i in ra... 阅读全文
posted @ 2019-01-09 10:39 青春叛逆者 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Traceback (most recent call last): File "/Users/mac126/数据分析/mayplotlib/mayplotlib.py", line 50, in <module> plt.text(x,y ,'%.2f'%y ,ha='center',va='bo 阅读全文
posted @ 2019-01-09 10:28 青春叛逆者 阅读(21635) 评论(0) 推荐(1) 编辑