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)))
確定! 回上一頁