摘要: 1. 206. 反转链表输入:head = [1,2,3,4,5]输出:[5,4,3,2,1] class Solution(object): def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ pre 阅读全文
posted @ 2021-08-01 18:00 KIKI_FAN 阅读(31) 评论(0) 推荐(0) 编辑
摘要: Python数据类型不可变 int, float, string, tuple >>> a = 1>>> b = 1>>> print(id(a))140454796502904>>> print(id(b))140454796502904# a b 地址一样 >>> a = 1>>> x = co 阅读全文
posted @ 2021-08-01 17:20 KIKI_FAN 阅读(58) 评论(0) 推荐(0) 编辑