📜  addner liste python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.536000             🧑  作者: Mango

代码示例2
>>> list = [1,2,3,4]
>>> tot = 0
>>> for i in list:
...     tot = tot + i
... 
>>> tot
10