代碼如下:def calc_prod(lst):? ? def lazy_prod():? ? ? ? def f(x,y):? ? ? ? ? ? return x*y? ? ? ? return reduce(f,1st,1) ? ?? ? return lazy_prodf = calc_prod([1, 2, 3, 4])print f()運行后,報錯截圖如下
添加回答
舉報
0/150
提交
取消