1. 线程 queue queue is especially useful in threaded programming when information must be exchanged safely between multiple threads. queue 三种方法 : class queue.Queue(maxsize=0) #队列:先进先出 import queue q=queue.Queue() q.put('first') q.put('second') q.put('t…