python 列表 实现队列

主要用到两个函数

list.pop() 返回并删除最后一个, 也可以 list.pop(n)

list.insert(0, item)

原文地址:https://www.cnblogs.com/wangjiale1024/p/10189317.html