Python中Queue队列进程通信
第一次写,刚学,折磨了我一下午。import time
from multiprocessing import Pool, Manager, Queue
# 获取数据
def reader(queueRead, char, lock):
# 加锁
lock.acquire()
if not queueRead.full():
print("--Reader--" + char)
...
原创
2018-05-19 18:53:52 ·
284 阅读 ·
0 评论