|
|
@@ -190,13 +190,13 @@ if __name__ == "__main__":
|
|
|
found_columns = search_keywords(data, header, ["搜索词", "类别"], row_index=0)
|
|
|
print(f"找到的列: {found_columns}")
|
|
|
|
|
|
- # 完整流程测试
|
|
|
- output_path = "/home/mrh/code/excel_tool/temp/测试_processed.csv"
|
|
|
- process_csv(
|
|
|
- input_file=file_path,
|
|
|
- output_file=output_path,
|
|
|
- columns=found_columns, # 使用搜索到的列
|
|
|
- start_row=1,
|
|
|
- source_lang='auto',
|
|
|
- target_lang='zh-CN'
|
|
|
- )
|
|
|
+ # # 完整流程测试
|
|
|
+ # output_path = "/home/mrh/code/excel_tool/temp/测试_processed.csv"
|
|
|
+ # process_csv(
|
|
|
+ # input_file=file_path,
|
|
|
+ # output_file=output_path,
|
|
|
+ # columns=found_columns, # 使用搜索到的列
|
|
|
+ # start_row=1,
|
|
|
+ # source_lang='auto',
|
|
|
+ # target_lang='zh-CN'
|
|
|
+ # )
|