NaN 表示 pandas 的数据缺失值,表示当前某些数据为“空”。 判断方法: 我试着用 == "nan" 判断,但是不行。 import pandas as pd print(pd.isna(a))