摘要: ##栈的定义 class Stack: """ items[0]为栈底 """ def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item): self.item 阅读全文
posted @ 2021-11-01 20:41 HUGBOY 阅读(172) 评论(0) 推荐(0) 编辑