📅  最后修改于: 2022-03-11 14:46:08.906000             🧑  作者: Mango
import multiprocessing
def f(x):
print multiprocessing.current_process()
return x * x
p = multiprocessing.Pool()
print p.map(f, range(6))