Commit bd3a6b82 by BellCodeEditor

save project

parent cd473194
Showing with 3 additions and 2 deletions
......@@ -14,5 +14,6 @@ with open(r'C:\Users\丽达玛酷12号\Desktop\a.txt','r',encoding="utf-8") as f
if "小强:10本" in i:
i.replace("小强:10本","小强:11本")
new_data += i
with open(r'C:\Users\丽达玛酷12号\Desktop\a.txt','r',encoding="utf-8") as file:
with open(r'C:\Users\丽达玛酷12号\Desktop\a.txt','w',encoding="utf-8") as file:
file.write(new_data)
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