import pandas as pd kd = pd.read_excel('物料清单正查_1.xlsx', sheet_name='树形单据体', nrows=5) print("COLUMNS:", list(kd.columns)) print(kd.head().to_string())