Commit e0e35eeb by BellCodeEditor

auto save

parent d5f39562
Showing with 1 additions and 1 deletions
......@@ -5,6 +5,6 @@ with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='utf-8') as a:
if '小强:10本' in a_1:
b=a_1.replace('小强:10本','小强:11本')
n+=b
with open(r'C:\Users\Administrator\Desktop\text.txt','w',encoding='utf-8') as a:
with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8') as a:
a.write(n)
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