为什么输出为空
def calc_prod(lst):
def mul():
return reduce((lambda x,y:x*y),lst)
return mul
f = calc_prod([1, 2, 3, 4])
print f()
def calc_prod(lst):
def mul():
return reduce((lambda x,y:x*y),lst)
return mul
f = calc_prod([1, 2, 3, 4])
print f()
2018-10-08
举报