a.shape #形狀為1*3 (3,) >>> np.shape(a) #查詢形狀也可呼叫numpy.shape() 傳入陣列 (3,) >>> a.ndim #維度為一維 1 >>> a.size #有3 個元素
確定! 回上一頁