例如: from multiprocessing import Pool def f(x): return x*x pool = Pool(processes=4) r=pool.map(f,range(100))
確定! 回上一頁