见下面代码及注释: def calc(value): sum=0 for m in value: sum=sum+m return sum data=[1,2,3,4,5,6,7,8,9,10] print(str(calc(data))) print(calc([1,2,3])) print(calc((1,2,3))) #print(calc(1,2,3)) 这句会报错,不过可以用可变参数改造函数calc def calc1(*value): sum=0 for m in value: su