1、Numpy 1.1 常用函数 1、创建数据 np.array() 2、维度的属性 array.ndim 3、添加数据 np.concatenate() 4、加维度 np.expand_dims() 首先需要把它们都变成二维,下面这两种方法都可以加维度 test1 = np.array([5, 10, 12, 6]) test2 = np.array([5.1, 8.2, 11, 6.3]) test1 = np.expand_dims