摘要: 1 def sort_list_method_1(a): 2 return sorted(a) 3 4 5 print(sort_list_method_1([1, 4, 2])) 6 7 8 def sort_list_method_2(a): 9 for i in range(len(a)): 阅读全文
posted @ 2018-07-05 21:10 TTT周清风 阅读(712) 评论(1) 推荐(0) 编辑
摘要: 1 def week(today, n): 2 s = n % 7 + today 3 return "n天后是星期:{}".format(s) 4 5 6 print(week(1, 3)) 阅读全文
posted @ 2018-07-05 21:00 TTT周清风 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1 a = [1, 2, 3] 2 b = [4, 5, 6] 3 4 5 def sum_super(* args): 6 s = 0 7 for i in args: 8 s += sum(i) 9 return s 10 11 12 # print(sum_super(a, b)) 阅读全文
posted @ 2018-07-05 20:56 TTT周清风 阅读(131) 评论(0) 推荐(0) 编辑
摘要: def article(): pass 阅读全文
posted @ 2018-07-05 10:16 TTT周清风 阅读(81) 评论(0) 推荐(0) 编辑