队列:
import queue
q=queue.Queue() #队列
q.put([1,2,"3"]) # q.put(class XXX)放对象在里面是常规操作
print(q.get())
print(q.qsize())
print(q.empty())
print(q.full())
q.queue.clear() #清空队列
堆栈:
import queue
q=queue.LifoQueue() #堆栈
q.put(1)
q.put(2)
print(q.get())
其他操作一样