沿着水平方向将数组堆叠起来。 import numpy as np print np.hstack((test_x,test_y))沿着竖直方向将矩阵堆叠起来。 np.vstack((arr1,arr2))