Commit 0b5c6259 by BellCodeEditor

save project

parent e7946d83
Showing with 3 additions and 3 deletions
...@@ -6,8 +6,7 @@ file1.close() ...@@ -6,8 +6,7 @@ file1.close()
with open(r"C:\Users\15731\Desktop\Helloblock\Helloblock,book.txt",'r',encoding='utf-8')as file2: with open(r"C:\Users\15731\Desktop\Helloblock\Helloblock,book.txt",'r',encoding='utf-8')as file2:
#file2.write('小强:12本') #file2.write('小强:12本')
for date in file2: for date in file2:
if '小兰:12本' in date: if '小兰' in date:
new_date=date.replace('小兰12','小兰13') new_date+=date
new_date += date
print(date) print(date)
\ 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