摘要: 线程 队列:先进先出 堆栈:后进先出 优先级:数字越小优先级越大,越先输出 import queue q = queue.Queue(3) # 先进先出-->队列 q.put('first') q.put(2) # q.put('third') # q.put(4) #由于没有人取走,就会卡主 q. 阅读全文
posted @ 2018-04-23 21:36 Mr。yang 阅读(216) 评论(0) 推荐(0)