|
|
@@ -72,9 +72,9 @@ def read_csv(file_path: str) -> List[List[str]]:
|
|
|
|
|
|
logger.info(f"Successfully read file with encoding: {encoding}")
|
|
|
|
|
|
- # 打印前几行内容
|
|
|
+ # 打印前几行内容,使用DEBUG级别
|
|
|
for row in data[:5]:
|
|
|
- logger.info(f"Row: {row}")
|
|
|
+ logger.debug(f"Row: {row}")
|
|
|
|
|
|
# 将数据写入新的utf-8编码文件
|
|
|
output_file_path = file_path + '.utf8.csv'
|
|
|
@@ -102,4 +102,4 @@ def main():
|
|
|
read_csv(file_path)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- main()
|
|
|
+ main()
|