Commit 0797de72 by BellCodeEditor

save project

parent a8d02629
Showing with 10 additions and 0 deletions
a=''
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='UTF-8')as f:
for i in f:
if'小强:12本'in i:
i=i.replace('小强:12本','小强:10本')
a+=i
with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='UTF-8')as f:
f.write(a)
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