s = df.isnull().any() #返回series形式,可以用enumerate打印s
#true代表有空值
null_index = []
for i,j in enumerate(s):
print(i,j,s.index[i])
if(j):
null.index.append(s.index[i])