1 def sum_func(*args): 2 total=0 3 for i in args: 4 return total 5 print(sum_func(1,2,3,8,23,6))
写函数,接收n个数字,求这些参数数字的和
原文:https://www.cnblogs.com/qsmyjz/p/13166826.html