Python單鏈表實現

# -*- coding:utf-8 -*- #建立單個節點類 class Node: def __init__(self, x): self.val = x self.next = None '''鏈表類 添加一個哨兵節點,便於後面的操做 函數實現:增刪改查 ''' class LinkList(object): def __init__(sel
相關文章
相關標籤/搜索