reduce 函数
需要导入 from functools impot reduce
3个参数 第一个函数 第二个可迭代对象 第三个可传可不传
原文:https://www.cnblogs.com/wulinmiao/p/11407825.html