import numpy as np
a = np.array([1,2])
b = a +1
c = np.stack((a,b))
print(c.shape)
c = np.concatenate((a,b))
print(c.shape)
```![在这里插入图片描述](https://img-blog.csdnimg.cn/28f234b895154082b4fb902d3ca35a1b.png)
[添加链接描述](https://www.cnblogs.com/chester-cs/p/11833520.html)
np.stack np.concatenate
于 2021-11-08 23:07:28 首次发布