Commit 6c50cd24 by BellCodeEditor

save project

parent ff37e4a9
Showing with 3 additions and 4 deletions
...@@ -9,6 +9,5 @@ with open(r'C:\Users\23636\text.txt','r',encoding='utf-8') as file1: ...@@ -9,6 +9,5 @@ with open(r'C:\Users\23636\text.txt','r',encoding='utf-8') as file1:
#file1.wirte('李文,9本\n') #file1.wirte('李文,9本\n')
#file1.wirte('小兰,12本\n') #file1.wirte('小兰,12本\n')
for data in file1: for data in file1:
if '小强,10本' and '小兰,12本' in data: if data
print('小强在里面') print()
\ No newline at end of file
\ 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