python鏈表

 鏈表的結構是項的集合,其中每一個項保持相對於其餘項的相對位置。python python鏈表經常使用的函數   一個簡單地項 class Node: #鏈表項,必須包含值,和下一個項兩個屬性,和對應的set get 方法 def __init__(self,initdata): self.data = initdata self.next = No
相關文章
相關標籤/搜索