从这道题,我学到了怎么新建一个链表,假如我要把一串内容放入链表:
for i in range(length):
if i == 0:
ll = ListNode(int(sumNum[i]))
p = ll
else:
p.next = ListNode(int(sumNum[i]))
p = p.next
return ll