补全9月11日至13日课评:为13名学生创建请假文档,为5个班级创建总结文档
This commit is contained in:
11
.claude/memory/temp/spotcheck.py
Normal file
11
.claude/memory/temp/spotcheck.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import io, re, sys
|
||||
f = sys.argv[1]; name = sys.argv[2]
|
||||
c = io.open(f, encoding='utf-8').read()
|
||||
i = c.find('data-oj-section="%s"' % name)
|
||||
j = c.find('oj-explains', i)
|
||||
seg = c[j:j+1800]
|
||||
seg = re.sub(r'<[^>]+>', ' ', seg)
|
||||
seg = re.sub(r'\s+', ' ', seg)
|
||||
print('--- %s 题目讲解(前段) ---' % name)
|
||||
print(seg)
|
||||
Reference in New Issue
Block a user