Commit 42911c76 by BellCodeEditor

auto save

parent dc22b1a3
Showing with 8 additions and 0 deletions
new_text=""
with open("C:\\Users\windows\\Desktop\\text.txt","r",encoding="utf-8") as f:
for data in f:
if "只是当时已惘然" in data:
.replace("只是当时已惘然","-----------")
print(data)
# with open("C:\\Users\windows\\Desktop\\text.txt","w",encoding="utf-8") as f:
# f.write(new_text)
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 sign in to comment