Commit a06231e3 by BellCodeEditor

save project

parent 62973c76
Showing with 2 additions and 1 deletions
...@@ -10,5 +10,5 @@ ...@@ -10,5 +10,5 @@
# a.write('李明:15本\n') # a.write('李明:15本\n')
with open(r'C:\Users\Thinkpad\Desktop\book.txt','r',encoding='utf-8') as a: with open(r'C:\Users\Thinkpad\Desktop\book.txt','r',encoding='utf-8') as a:
for i in a: for i in a:
if '小强:10本' in a: if '小强:10本' in i:
print('在呢!') print('在呢!')
\ 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