主要用到两个函数 list.pop() 返回并删除最后一个, 也可以 list.pop(n) list.insert(0, item) 转载于:https://www.cnblogs.com/wangjiale1024/p/10189317.html