Another solution which is even more concise: arr = np.arange(6).reshape((2, 3)) desired_shape = np.array((5, 8)) pads = tuple((0, ...
確定! 回上一頁