摘要: 1.队列 from multiprocessing import Queue q = Queue(5) #创建队列对象,队列大小为5,队列中只能存放5个元素 q.put(1) #往队列中添加元素 q.put(2) q.put(3) q.put(4) q.put(5) print(q.full()) 阅读全文
posted @ 2019-12-19 23:06 手可摘星辰。 阅读(279) 评论(0) 推荐(0) 编辑