补全9月11日至13日课评:为13名学生创建请假文档,为5个班级创建总结文档

This commit is contained in:
chengzi
2026-09-13 19:34:34 +08:00
parent 167d832353
commit 21001eccf5
1322 changed files with 37510 additions and 4136 deletions

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
import io, sys
for f in sys.argv[1:]:
c = io.open(f, encoding='utf-8').read()
print('===', f.replace('\\', '/').split('/')[-1])
for label, needle in [
('CSS .prob-detail', '.prob-detail{border'),
('CSS .prob-body', '.prob-body{display:none'),
('CSS .prob-code', '.prob-code{background'),
('📋 题目', '📋 题目'),
('👦 孩子的代码', '👦 孩子的代码'),
('✅ 参考答案', '✅ 参考答案'),
('💡 解析', '💡 解析'),
('题目讲解标题', '题目讲解'),
]:
print(' %-18s count=%d' % (label, c.count(needle)))
# show a real panel sample (find first prob-body, strip tags for a peek)
import re
m = re.search(r'<div class="prob-body">(.*?)</div></div></div>', c, re.S)
if m:
txt = re.sub(r'<[^>]+>', ' ', m.group(1))
txt = re.sub(r'\s+', ' ', txt)
print(' first-panel text snippet:', txt[:180])