用Python定义一个函数,接收n个数字,求这些参数数字的和
def f1(*args): r = 0 for item in args: r += item print(r) def f2(*args): print(sum(args))