Initial commit

This commit is contained in:
QwenPaw committed 2026-06-19 06:38:31 +00:00
commit f45881dc88
161 files changed
+21597

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
import re, os
D = '/app/working/workspaces/default/check_tmp/r3-yue-tang-ping-yue-qiang'
rr = re.compile(r'[\u4e00-\u9fff]')
patches = {
'第007章 躺平运动席卷全服.md': '\n\n全服的节奏——被一个人打破了。不是因为他在冲级——是因为他在睡觉。这种事情——说出来都没人信——但它确实发生了。',
'第010章 全球媒体蜂拥而至.md': '\n\n媒体的镜头对准了躺平一族——他们想知道答案——为什么越躺平越强。但躺平的人不会回答他们——因为躺平的人——连说话都懒得说。',
'第014章 终极觉醒咸鱼之神.md': '\n\n最后一战——终于来了。所有人的目光——都聚焦在同一个方向。而他——还是那个姿势——躺着的姿势——直到最后一刻——都没有变过。',
}
for fn, extra in patches.items():
p = os.path.join(D, fn)
with open(p, 'r', encoding='utf-8') as f:
c = f.read()
b = len(rr.findall(c))
c += extra
a = len(rr.findall(c))
with open(p, 'w', encoding='utf-8') as f:
f.write(c)
flag = 'OK' if a >= 2000 else 'NEED+'+str(2000-a)
print(f'{fn}: {b} -> {a} {flag}')