from functools import reduce def prod(x,y): return x*y print(reduce(prod,[1,3,5,7,9]))
Sign in to make a reply
姚树为
from functools import reduce def prod(x,y): return x*y print(reduce(prod,[1,3,5,7,9]))