Commit d1cb0dc0 by BellCodeEditor

save project

parent 8f9fa547
Showing with 9 additions and 2 deletions
......@@ -7,4 +7,11 @@ file1.write('小丽:12本\n')
file1.write('李文:12本\n')
file1.write('张伟:12本\n')
file1.close()
\ No newline at end of file
file1.close()
file1= open(r'C:\Users\EDY\Documents\lesson12-1','r',encoding='utf-8')
for data in file1:
if'小强:10本'in data:
if'小强:10本'in data:
\ 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