玥儿
Topic sourcedef mult(*x):
if len(x) == 0:
raise TypeError('至少传一个参数')
sum = 1
for n in x:
if not isinstance(n,(int,float)):
raise TypeError('bad operand type')
else:
sum = sum * n
return sum
- 1
玥