链表输入输出2021.09.10
合并两个有序链表
class Node():
def __init__(self, item):
self.item = item
self.next = None
class Link():
def __init__(self):
self.head = None
def add(self, list):
self.head = Node(int(list[0]))
cur = self.head
原创
2021-09-10 09:11:57 ·
80 阅读 ·
0 评论