Type/to search
1
Follow
0
Followers
Python でプロセス プールを使用できないのですか?
FAQ
Created 2018-04-13 10:21:31  Updated 2018-04-13 10:24:47
 0
 1915

def add(args):
(x,y) = args
return x+y

def main():
if name == "main":
pool = Pool(2)
results = pool.map(add,[(1,2),(2,3),(3,4)])
Log("result",results)
このコードは常に, add 方法にピックルできないことを提示しています.

Related Recommendations
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)