Commit 7d51c85b by BellCodeEditor

save project

parent db8d86e0
Showing with 3 additions and 3 deletions
...@@ -26,9 +26,9 @@ with open(r'/Users/edz/Desktop/book.txt','r',encoding='utf-8') as a5: ...@@ -26,9 +26,9 @@ with open(r'/Users/edz/Desktop/book.txt','r',encoding='utf-8') as a5:
for book in a5: for book in a5:
if '小强:12本' in book: if '小强:12本' in book:
print('122121') print('122121')
a5.replace('小强:12本','小强:11本') # a5.replace('小强:12本','小强:11本')
new_book=a5 # new_book=a5
print(new_book) # print(new_book)
......
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