可以判断从excel取出数字的type,并做后续处理 if type(row_data[2]).__name__ == 'float': row_data[2] = int(row_data[2]) 处理后 数据格式会正确取出