求大神帮我看看我的代码那里错了
def calc_prod(lst):
def calc_multi(lst):
a=1
for x in lst:
a=a*x
return a
return calc_multi
f = calc_prod([1, 2, 3, 4])
print f()
def calc_prod(lst):
def calc_multi(lst):
a=1
for x in lst:
a=a*x
return a
return calc_multi
f = calc_prod([1, 2, 3, 4])
print f()
2017-01-31
举报