python Copy import math import numpy as np b = math.nan print(np.isnan(b)). 輸出: textCopy True. 請注意, math.nan 常量代表一個 nan 值。
確定! 回上一頁