import pandas as pd

# 读取年级表和班级表
grade_df = pd.read_excel(r'e:\project\python\工具\智慧校园\本部\消费数据\年级表.xlsx')
class_df = pd.read_excel(r'e:\project\python\工具\智慧校园\本部\消费数据\班级表.xlsx')

print("=== 年级表 ===")
print(f"形状: {grade_df.shape}")
print(f"列名: {grade_df.columns.tolist()}")
print("\n前10行:")
print(grade_df.head(10))

print("\n=== 班级表 ===")
print(f"形状: {class_df.shape}")
print(f"列名: {class_df.columns.tolist()}")
print("\n前10行:")
print(class_df.head(10))