堆叠与分割 1 水平方向 import numpy as np # 1.水平堆叠(需要行相同) arr1 = np.zeros(shape=(2, 2), dtype=int) print(arr1) arr2 = np.ones(shape=(2, 3), dtype=int)