Commit 49d54549 by BellCodeEditor

save project

parent ecb056fd
Showing with 4 additions and 0 deletions
......@@ -10,4 +10,7 @@ with open(r'C:\Users\16064\Desktop\text.txt','r',encoding='utf-8') as file1:
if '小兰:12本' in i:
i=i.replace('小兰:12本','小兰:14本')
new_data +=i
with open(r'C:\Users\16064\Desktop\text.txt','w',encoding='utf-8') as file1:
file1.write(new_data)
print(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