摘要: 栈stack 后进先出 class Stack(object): def __init__(self): self.stack = [] def push(self, value): # 进栈 self.stack.append(value) def pop(self): # 出栈 if self. 阅读全文
posted @ 2018-07-01 21:16 aaronthon 阅读(2328) 评论(0) 推荐(0)