... 4.4 , 5.3221]) // 查看當前數據類型In [9]: arr2.dtype Out[9]: dtype('float64') // 轉換數據類型float -> int In [10]: arr2.astype(np.int32) ...
確定! 回上一頁