函数作用:
阶乘和的计算.
与 python2 差异
python 3 中, reduce() 函数已从全局函数中移除, 放置在 functools 模块中, 使用的话需要调用此模块中的 reduce
例子:
from functools import reduce
而在 Python2 中直接使用即可
来源: http://www.bubuko.com/infodetail-3458867.html