how to sum in 2d python array, without Numpyt

前端 未结 0 1996
长发绾君心
长发绾君心 2020-12-14 01:17

lets say I have the following array:

My_Array = [[1,2,3],[4,5,6],[7,8,9]]

I want to sum each of these arrays so the output would be

My_Array = [[6],[15]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题