在python里面找不到函数
>>> def f(x,y): return x+y >>> reduce(f,[1,3,5,7,9],100) Traceback (most recent call last): File "
", line 1, inreduce(f,[1,3,5,7,9],100) NameError: name 'reduce' is not defined 为什么在python里面找不到函数#3>>>> def f(x,y): return x+y >>> reduce(f,[1,3,5,7,9],100) Traceback (most recent call last): File "
", line 1, inreduce(f,[1,3,5,7,9],100) NameError: name 'reduce' is not defined 为什么在python里面找不到函数#3>2018-01-18
举报