对于numpy矩阵,行列扩展有三种比较常用的方法:使用矩阵对象的c_方法扩展列,使用矩阵对象的r_方法扩展行。使用numpy扩展库提供的insert()函数,使用axis参数指定行或列。使用numpy扩展库的row_stack()函数扩展行,column_stack()函数扩展列。 来源:CSDN作者:Python_小屋链接:https://blog.csdn.net/oh5W6HinUg43JvRhhB/article/details/85333771 标签 矩阵 python矩阵