def mul(*x):
if len(x)==0:
raise TypeError('输入不能为空')
else:
s=1
for i in x:
s=s*i
return s
Sign in to make a reply
时间旅行
def mul(*x):
if len(x)==0:
raise TypeError('输入不能为空')
else:
s=1
for i in x:
s=s*i
return s