摘要: class ListNode: def __init__(self, val=0, next=None): self.val = val #val表示值 self.next = next #指针next表示后继指针 class MyLinkedList: def __init__(self):#初始 阅读全文
posted @ 2023-10-20 01:49 ve-2021 阅读(23) 评论(0) 推荐(0) 编辑