模拟Sum函数(版本二)

来源:互联网 发布:全球云计算市场格局 编辑:程序博客网 时间:2024/06/08 03:27
from functools import reducedef sum(L):    return reduce(lambda x, y: x + y, L)