ai_member_xiaoban/check_file_structure.py
2026-03-14 08:00:01 +08:00

16 lines
595 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import pandas as pd
# 文件路径
file1 = "/root/.openclaw/media/inbound/é_¾åº_æ_æ_å_è_ç³_æ_1.0---8b762144-a4a3-481d-bdb8-b3b0dcbf875a.xlsx"
file2 = "/root/.openclaw/media/inbound/â_¼ï_LV1-å_ç_å_è_åº_-ç¼_å_é_è_ç_è_é---286e16db-d460-460d-95a4-242f28a0429c.xlsx"
print("===== 第一份表格结构 =====")
df1 = pd.read_excel(file1)
print(f"列名:{list(df1.columns)}")
print(f"前5行数据\n{df1.head()}\n")
print("===== 第二份表格结构 =====")
df2 = pd.read_excel(file2)
print(f"列名:{list(df2.columns)}")
print(f"前5行数据\n{df2.head()}")