def product(*nums):
s=1
if not nums:
raise ValueError
else:
for i in nums:
s=s*i
return s
Sign in to make a reply
只是练习生