摘要:
在python中经常会到用多线程处理某个函数来缩短运行时间。 from multiprocessing import Pool def work(x): return x+1 pool = Pool(processes=4) # 4个线程 x = [1,2,3,4,5,6] results = po 阅读全文
posted @ 2021-04-02 16:12
Python探索牛
阅读(565)
评论(0)
推荐(0)