3.6.5没有reduce
提示 Undefined variable 'reduce'
提示 Undefined variable 'reduce'
2019-01-04
python3.x版本后没有reduce()函数了,如果想用还是可以的,详细步骤见:
https://stackoverflow.com/questions/13638898/how-to-use-filter-map-and-reduce-in-python-3
python3中用functools.reduce
举报