标签:queue start process imp 基于 from span 消息 art
from multiprocessing import Process,Queue def f1(q): q.put(‘约吗?‘) if __name__ == ‘__main__‘: q = Queue(3) p = Process(target=f1,args=(q,)) p.start() son_p_msg = q.get() print(‘来自子进程的消息:‘,son_p_msg)
标签:queue start process imp 基于 from span 消息 art
原文地址:https://www.cnblogs.com/demons97/p/10267379.html