if math.isnan(tem[i]) == True:TypeError: must be real number, not str
tem应该是个str,或者说tem【i】是个str,这里好像必须是个整型或者NaN
tem[i]是字符串,必须为数字