python用鏈表實現堆棧(原創請勿轉載)

單向鏈表模塊在我前面的博客裏面 from 單向鏈表 import Linklist,Node class Stack: def __init__(self): self.__stack = Linklist() def push(self,node): self.__stack.insert_after(node) def pop(s
相關文章
相關標籤/搜索