# -*- 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")
t=open("_cornell_eas_degree.txt",encoding="utf-8").read()
i=t.find("Degree Requirements", t.find("Degree Requirements")+10)
print("=== Degree Requirements ===")
print(t[i-60:i+700])
print("\n=== Concentration ===")
j=t.find("Concentration Areas", i)
print(t[j:j+700])
# 总览 project 学分
o=open("_cornell_eas.txt",encoding="utf-8").read()
for kw in ["30 Credits","Design Project","project","credits","one year","research thesis"]:
    k=o.lower().find(kw.lower())
    if k>=0: print(f"\n[overview {kw}] ...{o[max(0,k-70):k+160]}...")
