2021-03-08
单链表翻转# 单链表翻转class Node(): def __init__(self,value,next_=None): self.value=value self.next=next_def Reverse(head): if head==None or head.next==None: return head p1=head.next node=head head.next=None wh.