特牛网址导航

python学习笔记 day37 管道Pipe (IPC机制----进程之间互相通信)-CSDN博客

网友收藏
文章浏览阅读100次。1. 管道支持双端通信,但是数据不安全,没有加锁from multiprocessing import Pipel,r=Pipe() # 实例化一个管道l.send("hello,xuanxuan") # 管道的一端(l)发送数据print(r.recv()) # 管道的另一端(r)接收数据r.send("hello,xixi") # r端发送数据print(...