How to access an object outside of a multiprocessing process?

后端 未结 0 824
情书的邮戳
情书的邮戳 2021-01-16 12:06

here is my code

from multiprocessing import Pool
a = []
def f(x):
    a.append(x*x)
    return x*x

if __name__ == \'__main__\':
    with Pool(5) as p:
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题