摘要: 1.迭代的方式 def reverse(self, head): if head is None or head.next is None: return head cur = head pre = None while cur: tmp = cur.next cur.next = pre pre 阅读全文
posted @ 2023-01-06 11:50 公众号python学习开发 阅读(108) 评论(0) 推荐(0) 编辑