连加法运算的编程方法 def getsum(*a) : s=0 for item in a : s+=item return s; print(getsum(1,2)) print(getsum(1,2,3)) print(getsum(1,2,3,4))