标签:hello child def python one star roc fine ssi
from multiprocessing import Process,Pipe
def f(conn):
conn.send([42,None,"Hello"])
print(conn.recv())
print("I m fine ,parent")
conn.close()
if __name__=="__main__":
parent_conn,child_conn=Pipe()
p=Process(target=f,args=(child_conn,))
p.start()
print(parent_conn.recv())
parent_conn.send("Hello,child")
p.join()
标签:hello child def python one star roc fine ssi
原文地址:http://www.cnblogs.com/xiesongyou/p/7748030.html