# -*- coding: utf-8 -*-
import io, sys, os, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
def show(h, kws, win=260):
    t=open(f"_23_{h}.txt",encoding="utf-8").read()
    print("\n==============",h,"==============")
    for kw in kws:
        i=t.lower().find(kw.lower())
        if i>0:
            print(f"[{kw}] …{t[i:i+win]}")
show("c064173",["46-48","12-month","Summer Courses","Required Courses","industry","innovation"])
show("ca597d7",["research and thesis","Year 1","Required Courses","Foundational","credits","11-12"])
show("c03ef7d",["10 to 24","full-time or part-time","required","Computing in Biology","Statistics, Data","biotech"])
show("c529fb8",["two years","25 credits","21 credits","thesis","microeconomic","no option for online"])
show("ca25d43",["technical track","management track","advanced courses","18 credits","ten courses","Innovation and Design"])
print("\n\n########## AAP 定性 ##########")
for h in ["c97be4c","c5ed8dc","c13629c","c785e3d"]:
    t=open(f"_23_{h}.txt",encoding="utf-8").read()
    print("\n=====",h,"=====")
    for kw in ["part-time","part time","evening","online","remote","hybrid","full-time","in-person","weekend","professional","working"]:
        i=t.lower().find(kw.lower())
        if i>0:
            print(f"[{kw}] …{t[max(0,i-60):i+160]}")
