提交 26b800ef 编写于 作者: W wizardforcel

2020-05-06 16:55:25

上级 9ac13ba9
此差异已折叠。
...@@ -22,7 +22,7 @@ for i in range(st, ed + 1): ...@@ -22,7 +22,7 @@ for i in range(st, ed + 1):
f = path.join(textdir, f'{i}.html') f = path.join(textdir, f'{i}.html')
print(f) print(f)
co = open(f, encoding='utf8').read() co = open(f, encoding='utf8').read()
imgs_ = re.findall(r'Images/(\w+\.jpg)', co) imgs_ = re.findall(r'Images/(\w+\.\w+)', co)
imgs += imgs_ imgs += imgs_
nf = path.join(textdir + subfix, f'{i}.html') nf = path.join(textdir + subfix, f'{i}.html')
os.rename(f, nf) os.rename(f, nf)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册