请问一下我这个代码哪里出问题了?谢谢~
def calc_prod(lst):
def k(lst):
def l(x,y):
return x * y
return reduce(l,lst)
return calc_prod
f = calc_prod([1, 2, 3, 4])
print f()
def calc_prod(lst):
def k(lst):
def l(x,y):
return x * y
return reduce(l,lst)
return calc_prod
f = calc_prod([1, 2, 3, 4])
print f()
2017-04-26
举报