摘要: 1、栈 class Stack(object): """栈""" def __init__(self): self._list = [] def push(self, item): """添加一个新的元素item到栈顶""" self._list.append(item) def pop(self) 阅读全文
posted @ 2021-08-15 14:48 钟胜一 阅读(140) 评论(1) 推荐(0) 编辑