# -*- 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_sys_degree.txt",encoding="utf-8").read()
i=t.find("Core (Required) Courses")
j=t.find("M.Eng. Project", i)
print("=== CORE 段 ===")
print(t[i:j][:1500])
print("\n=== PROJECT 段 ===")
k=t.find("M.Eng. Project", j)
print(t[k:k+700])
# 通用缓存文件
for f in ["_cornell_admit.txt","_cornell_meng_guide.txt","_cornell_faq.txt","_cornell_pay.txt"]:
    print(f, os.path.exists(f), os.path.getsize(f) if os.path.exists(f) else 0)
