import numpy as np
x = np.array([[1,2,5],[2,3,5],[3,4,5],[2,3,6]])
# 输出数组的行和列数
x.shape
# (4, 3)
import numpy as np
x = np.array([[1,2,5],[2,3,5],[3,4,5],[2,3,6]])
# 输出数组的行和列数
x.shape
# (4, 3)
本文标题:Python中的矩阵
本文链接:https://www.haomeiwen.com/subject/ithozltx.html
网友评论