numpy.concatenate((a1, a2, ...), axis=0) Join a sequence of arrays along an existing axis.(按轴axis连接array组成一个新的array) The arrays must have the same shape, except in the dimension corresponding to axis axis:default is 0 >>> a = np.array([[1, 2], [3
感觉numpy.hstack()和numpy.column_stack()函数略有相似,numpy.vstack()与numpy.row_stack()函数也是挺像的. stackoverflow上也有类似的讨论,在这里numpy vstack vs. column_stack. 给一个相关函数的列表: stack() Join a sequence of arrays along a new axis. hstack() Stack arrays in sequence horiz