From d9c6f79a3660950d0f8cac2154c24b2380abe197 Mon Sep 17 00:00:00 2001 From: betterbeast2023 Date: Mon, 8 Jun 2026 06:50:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E8=84=9A=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=BE=93=E5=85=A5=E8=B7=AF=E5=BE=84=E7=A1=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E4=B8=BA=20`d:\input`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (ollama/gemma4:12b) --- merge_transactions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/merge_transactions.py b/merge_transactions.py index dd84c1b..c5141e6 100644 --- a/merge_transactions.py +++ b/merge_transactions.py @@ -1,5 +1,6 @@ import os import pandas as pd +import importlib import glob def merge_excel_files(input_dir): @@ -54,5 +55,6 @@ def merge_excel_files(input_dir): print("未找到任何包含 '交易流水' 工作表的 Excel 文件。") if __name__ == "__main__": - user_path = input("> ").strip() + # 硬编码输入路径为 d:\input + user_path = r"d:\input" merge_excel_files(user_path)