pttman
Muster
屬於你的大爆卦
pttman
Muster
屬於你的大爆卦
pttman
Muster
屬於你的大爆卦
Ptt 大爆卦
python sum加總
離開本站
你即將離開本站
並前往
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 sum加總」
的人也找了:
python sum用法
python迴圈加總
python list元素相加
python sum
python輸入多個數字相加
python串列加總
python陣列加總
python數字相加