def product(*x):
if len(x)==0:
x=None
sum=1
for s in x:
sum=sum*s
return sum
def product(*l):
if len(l)==0:
z=1
for y in l:
z=z*y
return z
我错在哪T.T
l=none
Sign in to make a reply
咚咚咚狼来了
def product(*x):
if len(x)==0:
x=None
sum=1
for s in x:
sum=sum*s
return sum