import numpy as np. X=np.array([[1,2,3,4],. [5,6,7,8],. [9,10,11,12]]). X_dim=X.shape # 以元组形式,返回数组的维数. print("X_dim:",X_dim).
確定! 回上一頁