使用astype函數轉換dtype. 使用「對象.astype()」。 float_arr=arr.astype(np.float64). #如果將浮點數轉換成整數,則小數部分將會被截斷。
確定! 回上一頁