求指教哪里不对
def calc_prod(lst):
def aaa():
def f(x, y):
return x*y
return reduce(f, 1st, 1)
return aaa
f = calc_prod([1, 2, 3, 4])
print f()
def calc_prod(lst):
def aaa():
def f(x, y):
return x*y
return reduce(f, 1st, 1)
return aaa
f = calc_prod([1, 2, 3, 4])
print f()
2017-12-12
举报