贴代码
import numpy as npx np.array([[[5, 5, 5], [5, 5, 5], [5, 5, 5]],[[5, 5, 5], [5, 5, 5], [5, 5, 5]],[[5, 5, 5], [5, 5, 5], [5, 5, 5]]])y np.array([1, 1, 1, 1, 1, 1, 1, 1, 1]).reshape(3, 3, 1)c np.concatenate((x, y), axis2)print(x.shape)
print(y.sh…