python 實現單向鏈表(原創請勿轉載)

class Node: def __init__(self, i): self.next = None self.id = i class Linklist: def __init__(self): self.head = None self.length = 0 def insert_after(self, node):
相關文章
相關標籤/搜索