Commit 3005cb44 by BellCodeEditor

auto save

parent 59f687ca
Showing with 11 additions and 0 deletions
f=''
a=open(r'C:\Users\EDZ\Desktop\test.txt','r',encoding='UTF-8')
for i in a:
if '小兰:12本'in i:
p=i.replace('小兰:12本','小兰:19本')
f=f+p
a.close()
with open(r'C:\Users\EDZ\Desktop\test.txt','w',encoding='UTF-8') as a:
a.write(f)
\ 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