def prod(L):
def product(x,y):
return x*y
return reduce(product,L)
print(prod([1,3,5,7,9]))
Sign in to make a reply
只想一夜暴富
def prod(L):
def product(x,y):
return x*y
return reduce(product,L)
print(prod([1,3,5,7,9]))