Commit 377b8da4 by BellCodeEditor

save project

parent fcf5b895
Showing with 4 additions and 2 deletions
......@@ -11,4 +11,6 @@ with open(r"C:\Users\Administrator\Desktop\test.txt",'r',encoding='utf-8')as fil
if '小兰:12本' in i:
i=i.replace('小兰:12本','小兰:14本')
new_data+=i
print(new_data)
\ No newline at end of file
print(new_data)
with open(r"C:\Users\Administrator\Desktop\test.txt",'w',encoding='utf-8')as file:
file.write(new_data)
\ No newline at end of file
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