python(队列 queue.LifoQueue后入后出)

# Author: Sooele
import queue
q = queue.LifoQueue()
q.put(1)
q.put(2)
q.put(3)
print(q.get())
print(q.get())
print(q.get())
class  queue.Queuemaxsize = 0 )#先入先出
class  queue.LifoQueuemaxsize = 0 )#last in fisrt out 
class  queue.PriorityQueuemaxsize = 0 )#存储数据时可设置优先级的队列

1
说点什么

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
提醒
匿名
游客
匿名

last in fisrt out是后入后出?搞笑呢?