怎么样?
a = np.ones((2,2,3)) b = np.array([[[1], [1]], [[2], [2]]]) print(a*b) array([[[1., 1., 1.], [1., 1., 1.]], [[2., 2., 2.], [2., 2., 2.]]])