大家在读取表格的时候,出现nan或者空行,可以使用type识别出类型后判断: if (type(单元格的值) != float and type(单元格的值) != numpy.float64)://跳过空单元格和空行