def calc_prod(lst):
def f(x,y):
return x*y
return reduce(f,lst,1)
f = calc_prod([1, 2, 3, 4])
print f()
半岛巨型饭盒
相关分类