In [1]: import numpy as np In [11]: # 创建数组 a = np.array([1,2,3,4,5]) In [12]: a Out[12]: array([1, 2, 3, 4, 5]) In [9]: np.array(range(1,6)) Out[9]: array([1, 2, 3, 4, 5]) In [10]: np.arange(1,6) Out[10]: array([1, 2, 3, 4, 5]) In [13]: # 数组的类名 type(