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.
相关文章
相关标签/搜索