Commit 6932858f by BellCodeEditor

save project

parent 67c1d5d7
Showing with 1 additions and 1 deletions
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
with open('C:\\Users\\001\\Desktop\\book.txt','r',encoding='utf-8')as s: with open('C:\\Users\\001\\Desktop\\book.txt','r',encoding='utf-8')as s:
for i in s: for i in s:
if"小兰:12本" and "小强:12本" in i: if"小兰:12本" and "小强:12本" in i:
print('在')
#s=open('C:\\Users\\001\\Desktop\\book.txt','a',encoding='utf-8') #s=open('C:\\Users\\001\\Desktop\\book.txt','a',encoding='utf-8')
#s.write('小强:12本\n') #s.write('小强:12本\n')
#s.write('李明:15本\n') #s.write('李明:15本\n')
......
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