赞
踩
pool.map默认只能传入一个参数,包上一个lambda分发参数,即可解决多参数传入问题
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
def execThread(func, args, pool_size=12):
pool = ThreadPool(pool_size
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。