資料比數和外型 x_train=np.array([1, 2, 3.0]) x_train=np.array([[1, 2], [3, 4]]) dim=x_train.shape[1] Doc navigation← 取得部分資料維度轉換2D轉1D →