#写函数,接收n个数字,求这些数字的和 def a(num): sum=0 for i in num: sum+=i return sum num1=(1,2,3,8) ret=a(num1) print(ret)