可变参数args 可变参数就是传入的参数个数是可变的,可以是1个、2个到任意个,还可以是0个。 def product(x,*args): s = x for i in args: s = s * i return s #测试 print('produ