This basic example of data parallelism using Pool ,. from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': with Pool(5) as p: ...
確定! 回上一頁