import numpy as np

array = np.array([[1, 2, 3], [4, 5, 6]])

print(array)
"""
[[1 2 3]
 [4 5 6]]
"""
print("dimension", array.ndim)  # 输出维度
# dimension 2
print("shape", array.shape)  # 输出矩阵形状
# shape (2, 3)
print("size", array.size)  # 输出矩阵大小
# size 6
