pttman
Muster
屬於你的大爆卦
pttman
Muster
屬於你的大爆卦
pttman
Muster
屬於你的大爆卦
Ptt 大爆卦
python加總
離開本站
你即將離開本站
並前往
https://www.ptt.cc/bbs/Python/M.1323787781.A.94F.html
[問題] 如何用Python 的方式將list 裡面的數值加總
squares = [1, 4, 9, 16] sum = 0 for num in squares: sum += num print sum ## 30.
確定!
回上一頁
查詢
「python加總」
的人也找了:
python加總list
python sum用法
python輸入多個數字相加
python輸入數字相加
python迴圈累加
python數列相加
python字串數字相加
python欄位加總