当将两个列向量进行拼接时,可有如下两步 1.矩阵升维 原数据可能为列向量,如 a=np.arange(10) a.shape (10,) 此时,需要用到矩阵的升维, a[:,None].shape 此时,有 a[:,None].shape