发布网友
共1个回答
热心网友
你首先需要创建一个线程池,其次将数据压进线程池,然后读取线程池。
import Queue
ThrQueue = Queue.Queue()
ThrQueue.put('数据')
ThrQueue.get()
当然以上步骤需要一个class来支撑,那说起来就多了!