02 2019 档案

摘要:# Author:XiangLiangimport threading,timeimport queueq = queue.Queue(maxsize=10)def Producer(name): count = 1 while True: q.put("骨头 %s" %count) print(" 阅读全文
posted @ 2019-02-27 00:16 比岸 阅读(112) 评论(0) 推荐(0)
摘要:# Author:XiangLiangimport queue#q = queue.LifoQueue() #先进后出 #q = queue.PriorityQueue() #优先级 q = queue.Queue(maxsize=3) #固定大小,先进先出 q.put(1)q.put(2)q.pu 阅读全文
posted @ 2019-02-26 23:44 比岸 阅读(133) 评论(0) 推荐(0)