# -*- coding: utf-8 -*-
import io, sys, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
f = r"D:\work buddy\2026-11-05-14-15-52\publish\美加硕士项目查询库\美加硕士项目查询库_单文件版.html"
t = open(f, encoding="utf-8").read()
print("showDet:", t.count("showDet"))
print("closeDet:", t.count("closeDet"))
print("p.det} href 残留:", t.count('href="${p.det}"'))
print("mDet:", t.count("mDet"))
for l in t.splitlines():
    if "showDet" in l or "p.det}" in l:
        print("  >", l.strip()[:150])
