python實現棧、隊列、鏈表的插入、刪除以及遍歷

棧:先進後出python 隊列:先進先出sql 單向鏈表:先進先出(本身能夠設置)app 代碼以下:ui class Stack(): stack = [] def stackPush(self): self.stack.append(input("enter your string:").strip()) def stackIsEmpty(
相關文章
相關標籤/搜索