请问下return reduce(t,lst,1) lst是什么时候进去的,lazy_sum()并没带参数啊
def calc_prod(lst):
def lazy_sum():
def t(x,y):
return x*y
return reduce(t,lst,1)
return lazy_sum
f = calc_prod([1, 2, 3, 4])
print f()
请问下return reduce(t,lst,1) lst是什么时候进去的,lazy_sum()并没带参数啊