代碼如下: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()運(yùn)行后,報(bào)錯(cuò)截圖如下
添加回答
舉報(bào)
0/150
提交
取消