Python 内置函数
sum() 方法对系列进行求和计算。
以下是 sum() 方法的语法:
sum(iterable[, start])
返回计算结果。
以下展示了使用 sum 函数的实例:
Python sum() 函数
原文:https://www.cnblogs.com/fpzs/p/10476806.html