Commit 8eeaf37d by BellCodeEditor

auto save

parent c9bb0b4c
Showing with 3 additions and 2 deletions
...@@ -11,4 +11,5 @@ with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')as fil ...@@ -11,4 +11,5 @@ with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')as fil
for data in file1: for data in file1:
if '小兰:12本' in data: if '小兰:12本' in data:
data=data.replace('小兰:12本','小兰:14本') data=data.replace('小兰:12本','小兰:14本')
new_data+=data new_data+=data
\ No newline at end of file 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