functools 中的 reduce 函数基本写法

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

reduce(函数,可迭代对象)

注:lambda x,y 两个参数


2020-05-04

 

posted @ 2020-05-04 19:52  Hany47315  阅读(299)  评论(0)    收藏  举报