Python實現鏈表的各類功能

class Node():     def __init__(self,val,nxt):         self.val=val         self.nxt=nxt     def __str__(self):         return str(self.val)     def __repr__(self):         return 'value is '+str(self.
相關文章
相關標籤/搜索