剑指offer第15题,python实现: class Solution: # 返回ListNode def ReverseList(self, pHead): # write code here if pHead==None or pHead.next==None: return pHead else: qlist = [] listNode = pHead while(listNode!=None): ...