'''
队列 Queue
先进先出
'''
class MyQueue:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
# 入队列
def enqueue(self, item):
self.items.insert(0, item)
# 出队列
def dequeue(self):
return self.items.pop()
def size(self):
return len(self.items)