📅  最后修改于: 2022-03-11 14:46:12.140000             🧑  作者: Mango
from multiprocessing import Pool
def test( v ):
print(v)
return v
if __name__ == '__main__':
with Pool(2) as p:
print(p.map(test, range(5)))