2018年12月1日
摘要: import threading,time,queue,randomdef scz(): while True: num=random.randint(1,100000) q.put(num)#放进队列 print("生产者产生了%d数据" %(num)) time.sleep(5) q.task_ 阅读全文
posted @ 2018-12-01 22:01 wfw001 阅读(193) 评论(0) 推荐(0) 编辑