1.print(A.shape):查看矩阵的行列维度
2.print(len(A)):查看矩阵有几行
3.print(A.nidm):查看矩阵的维度
A = np.array([[1, 1 / 3, 1 / 8], [3, 1, 1 / 3], [8, 3, 1]])
print(A.shape)
print(len(A))
print(A.ndim)
1.print(A.shape):查看矩阵的行列维度
2.print(len(A)):查看矩阵有几行
3.print(A.nidm):查看矩阵的维度
A = np.array([[1, 1 / 3, 1 / 8], [3, 1, 1 / 3], [8, 3, 1]])
print(A.shape)
print(len(A))
print(A.ndim)