标签:div tip col 开始 项目 多线程 data- for 进一步
from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time def task(arg1,arg2): print(arg1,arg2) time.sleep(1) # pool = ProcessPoolExecutor(10) pool = ThreadPoolExecutor(10) for i in range(100): pool.submit(task,i,i)
Python3【模块】concurrent.futures模块,线程池进程池
标签:div tip col 开始 项目 多线程 data- for 进一步
原文地址:http://www.cnblogs.com/lucaq/p/7641751.html