求大神,我这个代码怎么看不出来哪里错误~~~
def calc_prod(1st):
def lazy_():
def f(x,y):
return x*y
return reduce(f,1st)
return lazy_
f = calc_prod([1, 2, 3,4])
print f()
def calc_prod(1st):
def lazy_():
def f(x,y):
return x*y
return reduce(f,1st)
return lazy_
f = calc_prod([1, 2, 3,4])
print f()
2019-04-20
举报