functools 中的 reduce 函数基本写法

reduce 返回的往往是一整个可迭代对象的 操作结果

reduce(函数,可迭代对象)

注:lambda x,y 两个参数


2020-05-04

原文地址:https://www.cnblogs.com/hany-postq473111315/p/12827943.html