python基于list的append和pop方法实现堆栈与队列功能