Commit 1f0786b6 by sikang

update script

parent ca772bf1
...@@ -70,7 +70,7 @@ def process_file_content(path, file_name): ...@@ -70,7 +70,7 @@ def process_file_content(path, file_name):
with open(path, "r", encoding="utf-8") as f: with open(path, "r", encoding="utf-8") as f:
# readlines以列表的形式将文件读出 # readlines以列表的形式将文件读出
lines = f.readlines() lines = f.readlines()
if "***Keep***" in lines: if "***Keep***" in lines[0]:
return return
with open(path, "w", encoding="utf-8") as f_w: with open(path, "w", encoding="utf-8") as f_w:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment