How can I sum a column of a list?

后端 未结 8 941
慢半拍i
慢半拍i 2020-12-30 04:31

I have a Python array, like so:

[[1,2,3],
 [1,2,3]]

I can add the row by doing sum(array[i]), how can I sum a column, using a

8条回答
提交回复
热议问题