Commit 5dc5fbcf by BellCodeEditor

auto save

parent a8d02629
Showing with 9 additions and 0 deletions
newdata=''
file1=open(r'C:\Users\stone\Desktop\book.txt','w',encoding='utf-8')
for i in file1:
if '小兰:12本' in i:
i=i.replace('小兰:12本','小兰:14本')
newdata+=i
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