python多线程之线程池
参考文档:https://www.jianshu.com/p/b9b3d66aa0be
多进程库(multiprocessing)中自带Pool类,在线程库(processing)中没有这个类,需要导入模块ThreadPoolExecutor
1.导入
from concurrent.futures import ThreadPoolExecutor
2.实例化
pool = Thread...
原创
2019-07-19 19:27:44 ·
93 阅读 ·
0 评论