📜  concat 与零数组 numpy - Python 代码示例

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

代码示例1
N = 4
np.pad(x, (0, N), 'constant')
#array([  1.,   2.,   1.,   2.,   7.,   9.,   1.,   1.,   3.,   4.,  10.,
#         0.,   0.,   0.,   0.])