Loading

摘要: 案例描述: 一个进程执行加一操作,另一个进程每隔5秒打印一次。 一、用进程实现(需要进程间进行通信) 1、消息队列 Queue def add(queue): # global aa aa =0 while aa<5: # print(aa) time.sleep(1) aa += 1 queue. 阅读全文
posted @ 2021-09-03 17:18 climber_dzw 阅读(28) 评论(0) 推荐(0) 编辑