矩阵是列表的列表而向量只是列表
### TODO: Assign the vector <5, 10, 2, 6, 1> to the variable mv
### The difference between a vector and a matrix in Python is that
### a matrix is a list of lists.
### Hint: See the last quiz on the previous page
mv = [[5,10,2,6,1]]
本文探讨了Python中矩阵和向量的区别,强调矩阵是列表的列表,而向量仅是列表,并通过实例展示了如何在Python中定义一个向量。
588

被折叠的 条评论
为什么被折叠?



