📅  最后修改于: 2022-03-11 14:45:31.531000             🧑  作者: Mango
代码示例6
To get the sum of a list in python, you just call the built in sum() function.
An example:
>>> lst = [3, 7, 1, 9, 4]
>>> sum(lst)
24