Commit 1b2be7c3 by BellCodeEditor

save project

parent 44b758ae
Showing with 2 additions and 3 deletions
...@@ -11,7 +11,5 @@ with open(r'C:\Users\CM\Destop\book.txt','w',encoding='utf-8') as file: ...@@ -11,7 +11,5 @@ with open(r'C:\Users\CM\Destop\book.txt','w',encoding='utf-8') as file:
with open(r'C:\Users\CM\Destop\book.txt','r'',encoding='utf-8') as file1: with open(r'C:\Users\CM\Destop\book.txt','r'',encoding='utf-8') as file1:
for data in file1: for data in file1:
if '小强:10\n' in data: if '小强:10\n' in data:
print('小强死了')
if '李明:15\n' in data:
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