在此插入代码
from functools import reduce def prod(L): def f(x,y): return x * y return reduce(f,L)
print('3 5 7 * 9 = ', prod([3,5,7,9]))
Sign in to make a reply
吴利民5705255624
from functools import reduce def prod(L): def f(x,y): return x * y return reduce(f,L)
print('3 5 7 * 9 = ', prod([3,5,7,9]))