Commit 04f70016 by BellCodeEditor

save project

parent 4c1492c1
Showing with 2 additions and 0 deletions
...@@ -14,3 +14,5 @@ with open(r"C:\Users\windows\Desktop\juanzeng.txt",'r',encoding='utf-8') as file ...@@ -14,3 +14,5 @@ with open(r"C:\Users\windows\Desktop\juanzeng.txt",'r',encoding='utf-8') as file
print("数据在文件中") print("数据在文件中")
data=data.replace("小兰:12本","小兰:13本") data=data.replace("小兰:12本","小兰:13本")
new_data+=data new_data+=data
with open(r"C:\Users\windows\Desktop\juanzeng.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