摘要: 栈 实现 后进先出的结构,主要有如下操作 Stack() push(item) pop() peek() isEmpty() size() class Stack(): def __init__(self): self.items=[] def push(self,item): self.items 阅读全文
posted @ 2017-03-27 18:12 pusidun 阅读(352) 评论(0) 推荐(0) 编辑