Python threadpool与multiprocessing
一、Threadpool,需要通过pip安装包 [sudo] pip install threadpool
旧的线程方法,建议使用multiprocessing
>>> pool = ThreadPool(poolsize)
>>> requests = makeRequests(some_callable, list_of_args, callback)...
转载
2018-08-17 21:40:44 ·
935 阅读 ·
0 评论