# 2.写函数,接收n个数字,求这些参数数字的和.(动态传参) def func1(*args): sum = 0 for i in args: sum += i print(sum) func1(1,2,3,4,5) # sum = 0 # def func1(*args): # for i in args: # global sum # sum += i # print('答案等于',sum) # # func1(1,2,3,4,5) # while 1: # shuzi = int(inp…