Commit 73f846e4 by BellCodeEditor

auto save

parent 423a20d9
Showing with 5 additions and 5 deletions
......@@ -7,7 +7,7 @@ file1.write('李文:9本\n')
file1.write('张伟:16本\n')
file1.close()
#with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')as file:
#for data in file:
#if 'q' in data:
#print('a')
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')as file:
for data in file:
if 'q' in data:
print('a')
\ 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