代码 import numpy as np array = np.array([[1,2,5],[3,4,6]]) print('-1-') print('数组维度', array.ndim) print('-2-') print('', array.shape) a = np.array([1,2,3]) print('-3-') print(a) a = np.array([1,2,3], dtype=np.int) print('-4-') print(a.dtype) a = np.ar…