How to add the second row of a matrix to the first row without changing the first row, using class Matrix (): (without using numpy)

前端 未结 0 1997
花落未央
花落未央 2020-12-15 02:36

I want to create a matrix with x amount of rows, for example, matrix = [[1, 2, 3],[4, 5, 3]] and I want to add the second row to the first row. The result should be [[5, 7,

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