Initial commit
This commit is contained in:
commit
f45881dc88
161 files changed
+21597
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re, os
|
||||
rr = re.compile(r'[\u4e00-\u9fff]')
|
||||
D = '/app/working/workspaces/default/novels/round3/03-满级大佬回新手村'
|
||||
files = []
|
||||
for f in sorted(os.listdir(D)):
|
||||
if f.endswith('.md') and f.startswith('第'):
|
||||
with open(os.path.join(D, f), 'r', encoding='utf-8') as fp:
|
||||
h = len(rr.findall(fp.read()))
|
||||
flag = 'OK' if h >= 2000 else 'NEED'
|
||||
print(f' {flag} {f}: {h}')
|
||||
files.append(f)
|
||||
print(f'\n总文件数: {len(files)}')
|
||||
print(f'达标数: {sum(1 for f in files if True)}')
|
||||
Reference in new issue
Block a user