摘要: 官方文档中使用multiprocessing.Pool的例子如下: from multiprocessing import Pool def f(x): print(x*x) return x*x def test(): with Pool(processes=4) as pool: # start 阅读全文
posted @ 2022-06-10 17:42 谷小雨 阅读(859) 评论(0) 推荐(0) 编辑