求助,这个第6行为啥提示错误
def calc_prod(lst):
def lazy_prod():
def f(x,y):
return x*y
return reduce(f,lst,1)
f = calc_prod([1,2,3,4])
print f()
def calc_prod(lst):
def lazy_prod():
def f(x,y):
return x*y
return reduce(f,lst,1)
f = calc_prod([1,2,3,4])
print f()
2019-05-30
举报