3-reduce 函数会对参数序列中元素进行累积,遍历列表累加函数

 

 

from functools import reduce

 

posted @ 2022-03-11 20:24  测试艺术家  阅读(28)  评论(0编辑  收藏  举报