- 博客(2)
- 收藏
- 关注
原创 2021-11-06
字典解包@TOC 字典解包 *作用于字典对象, 解包为 key , 传入函数作为位置参数 ** 作用于字典对象, 解包为 key = value , 传入函数作为关键字参数 定义函数和字典: def func(a,b,c): print(a,b,c) dict = {'b':1, 'c':2, 'a':3} fancy operation : 列表和range列表的合并 list1 = [5,5,2] list2 = range(4) list3 = [*list1, *list2] l
2021-11-07 00:03:35 60
原创 Leecode刷题总结
Leetcode刷题总结 — 01 奇偶链表 (first code !!!) 奇偶链表 就地排序,使用3个指针维护.开始提交,显示超出时间限制,于是补全代码进行调试 #include<stdio.h> #include<stdlib.h> struct ListNode { int val; struct ListNode *next; }; struct ListNode* oddEvenList(struct ListNode* head){
2020-07-31 17:15:52 313
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人