import numpy as npx = np.array([1,2,3])y = x[:,np.newaxis]z= x[np.newaxis,:]w = x[np.newaxis]print(x.shape,y.shape,z.shape,w.shape)#输出((3,), (3, 1), (1, ...
確定! 回上一頁