y = np.expand_dims(x, axis=(2, 0)). 2. >>> y. 3. array([[[1],. 4. [2]]]). Source: numpy.org. Add a Grepper Answer ...
確定! 回上一頁