Commit 1434f63e by sikang

bug fix

parent 1f0786b6
...@@ -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[0]: if "***Keep***" in str(lines):
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