
import os
import pandas as pd

def debug_metadata():
    file_path = r"c:\Users\WIN10\Desktop\work\11th-week\法律风险提示-new\市监局-lawRisk-backend\市级初版-20251219\许可风险提示\101（生产科） 风险提示表(食品小作坊登记，市场监管部门) (1)_转自XLS.xlsx"
    
    xl = pd.ExcelFile(file_path)
    with open("metadata_debug.txt", "w", encoding="utf-8") as f:
        df = xl.parse('市级（无意见）', header=None)
        for i in range(10):
            f.write(f"Row {i+1}: {list(df.iloc[i])}\n")

if __name__ == "__main__":
    debug_metadata()
