Type/to search
1
Follow
0
Followers
Không thể sử dụng process pool trong 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)
Có thể bạn có thể giúp tôi xem nó, hoặc cung cấp cho tôi một ví dụ về một nhóm quy trình có thể chạy được.

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