📜  加入两个 numpy 二维数组 - Python 代码示例

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

代码示例1
import numpy as np

a = np.array([[0, 1, 3], [5, 7, 9]])
b = np.array([[0, 2, 4], [6, 8, 10]])
c = np.concatenate((a, b), axis=0)
print(c)

Output : 
[[ 0  1  3]
 [ 5  7  9]
 [ 0  2  4]
 [ 6  8 10]]