标签:pytho hello queue star == targe __name__ 进程 one
from multiprocessing import Process,Queue
def f(q):
q.put([42,None,"Hello"])
if __name__ == "__main__":
q=Queue()
p=Process(target=f,args=(q,))
p.start()
print(q.get())
p.join()
标签:pytho hello queue star == targe __name__ 进程 one
原文地址:http://www.cnblogs.com/xiesongyou/p/7747939.html