reduce 函数

reduce 函数

需要导入 from functools impot reduce

 

3个参数 第一个函数  第二个可迭代对象  第三个可传可不传

 

posted @ 2019-08-25 14:25  暖o0兮  阅读(144)  评论(0编辑  收藏  举报