Initial commit
This commit is contained in:
commit
f45881dc88
161 files changed
+21597
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os, re
|
||||
|
||||
d = "/app/working/workspaces/default/novels/round3/01-越躺平越强"
|
||||
fname = "第001章 他们都在冲级,我躺下了.md"
|
||||
path = os.path.join(d, fname)
|
||||
|
||||
with open(path, 'r', encoding='utf-8') as f:
|
||||
c1 = f.read()
|
||||
|
||||
cn = len(re.findall(r'[\u4e00-\u9fff]', c1))
|
||||
print(f"当前:{cn}汉字,还需 {2000-cn} 汉字")
|
||||
|
||||
append = """
|
||||
他不知道的是,就在他睡着的这几分钟里,全服已经有超过十万人看到了全服通告——玩家「咸鱼本鱼」激活隐藏职业。论坛上关于他的讨论帖已经开始刷屏。有人怀疑是托,有人猜测是bug,有人已经开始尝试各种姿势躺平——试图复制他的成功。
|
||||
|
||||
而陈默,对这些一无所知。
|
||||
|
||||
他在做梦。梦里有无限的阳光和永远吹不完的暖风。
|
||||
|
||||
这是他人生中第一次觉得——游戏,真好玩。
|
||||
|
||||
"""
|
||||
|
||||
c1_new = c1 + append
|
||||
with open(path, 'w', encoding='utf-8') as f:
|
||||
f.write(c1_new)
|
||||
|
||||
cn_new = len(re.findall(r'[\u4e00-\u9fff]', c1_new))
|
||||
print(f"追加后:{cn_new}汉字")
|
||||
Reference in new issue
Block a user