user_image
By  _木子立青    On   2020年3月19日 14:58

>>> np.insert(a,1,[11],axis = 0) # 按行插入 array([[ 1, 2], [11, 11], [ 3, 4], [ 5, 6]]) >>> np.insert(a,1,[11],axis = 1) #按列插入 array([[ 1, 11, 2], [ 3, 11, 4], [ 5, 11, 6]]) 博主你好,axis = 0 代表列 1 代表行 为什么这个地方 是0代码行 1代表列 怎么理解 求回复。