摘要: 结果: list1=[10]list2=[123]list3=[10, 'a'] list1=[10, 'a']list2=[123]list3=[10, 'a'] 阅读全文
posted @ 2018-07-17 23:26 Niuli'blog 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1x1=1 2x1=2 2x2=4 3x1=3 3x2=6 3x3=9 4x1=4 4x2=8 4x3=12 4x4=16 5x1=5 5x2=10 5x3=15 5x4=20 5x5=25 6x1=6 6x2=12 6x3=18 6x4=24 6x5=30 6x6=36 7x1=7 7x2=14 阅读全文
posted @ 2018-07-17 23:15 Niuli'blog 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1 def func(*args): 2 # sum = 0 3 # for el in args: 4 # sum += el 5 # return sum 6 return sum(args) # sum() 求和 def func(*args): return sum(args) 阅读全文
posted @ 2018-07-17 23:06 Niuli'blog 阅读(536) 评论(0) 推荐(0) 编辑