Type/to search
1
Follow
0
Followers
Tidak boleh menggunakan kolam proses di bawah 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)
Ini adalah kod yang selalu memberitahu anda bahawa anda tidak boleh memilih kaedah add, adakah anda boleh melihat? atau anda boleh memberikan contoh kolam proses yang boleh dijalankan.

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