
python
huskar-t
https://github.com/huskar-t
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Scrapy使用
Scrapy安装:在windows环境python3.7上进行安装,命令 pip install scrapy 如果安装失败提示需要vc14的库,检查twisted是否安装成功,如果因为twisted问题可以在https://www.lfd.uci.edu/~gohlke/pythonlibs/ 上下载对应twisted包进行pip安装 新建scrapy项目:scrapy startproj...原创 2019-12-23 09:08:49 · 224 阅读 · 0 评论 -
tornado框架的定时任务协程和延时任务
#coding:utf-8 from tornado.gen import coroutine from tornado.ioloop import PeriodicCallback, IOLoop # 定时任务 def do_something(): pass PeriodicCallback(do_something, 1000).start() # 延时任务 def do_s...原创 2019-12-23 08:52:02 · 743 阅读 · 0 评论