摘要:
结果: list1=[10]list2=[123]list3=[10, 'a'] list1=[10, 'a']list2=[123]list3=[10, 'a'] 阅读全文
摘要:
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 阅读全文
摘要:
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) 阅读全文