接著檢視ndarray 物件的屬性: >>> a=np.array([1,2,3]) #一維整數陣列 >>> a.dtype #元素型態為int32 dtype('int32') >>> a.shape #形狀為1*3
確定! 回上一頁