1.使用 math.isnan() 功能. 一個簡單的解決方案來檢查 NaN 在Python 中使用數學函數 math.isnan() .它返回 True 如果指定的參數是 NaN 和 False 否則。
確定! 回上一頁