![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python 多线程爬虫
top_beyond
自动化工程师正在向爬虫进军
展开
-
二.BeautifulSoup多线程下载百思不得姐图片
#coding:utf-8import requestsfrom requests.exceptions import HTTPError, ConnectionErrorimport threadingfrom bs4 import BeautifulSoupimport reimport os,timeimport Queueclass get_Url(): def原创 2017-06-30 13:32:38 · 855 阅读 · 0 评论 -
一.python多线程类型总结
一.多线程 def#coding:utf-8import threadingimport timedef run(data1,data2): print time.strftime('%H:%M:%S',time.localtime(time.time())) print threading.currentThread() print data1,data2原创 2017-07-04 17:05:48 · 761 阅读 · 0 评论 -
三.python threading多线程总结
threading用于提供线程相关的操作,线程是应用程序中工作的最小单元。python当前版本的多线程库没有实现优先级、线程组,线程也不能被停止、暂停、恢复、中断。threading模块提供的类: Thread, Lock, Rlock, Condition, [Bounded]Semaphore, Event, Timer, local。threading 模块提供的常用方原创 2017-07-04 17:20:43 · 873 阅读 · 0 评论