摘要: from threading import Thread, Lock import time import random queue = [] lock = Lock() class ProducerThread(Thread): def run(self): nums = range(5) #Will create the list [0, 1, 2, 3, 4] ... 阅读全文
posted @ 2018-04-27 11:23 友哥 阅读(202) 评论(0) 推荐(0) 编辑