import pandas as pd import os # 读取Excel文件 excel_file = 'you_xlsx_file.xlsx' # 替换为你的Excel文件名 sheet_name = 'Sheet1' # 如果Excel有多个工作表,指定需要读取的