📜  向 numpy 数组添加新列 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.864000             🧑  作者: Mango

代码示例4
import numpy as np
N = 10
a = np.random.rand(N,N)
b = np.zeros((N,N+1))
b[:,:-1] = a