Commit d1cb0dc0 by BellCodeEditor

save project

parent 8f9fa547
Showing with 8 additions and 0 deletions
......@@ -8,3 +8,10 @@ file1.write('李文:12本\n')
file1.write('张伟:12本\n')
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