Commit fe1d1122 by BellCodeEditor

save project

parent b0a25609
Showing with 3 additions and 3 deletions
...@@ -3,6 +3,6 @@ with open(r'E:\a','w',encoding='utf-8') as a: ...@@ -3,6 +3,6 @@ with open(r'E:\a','w',encoding='utf-8') as a:
a.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本') a.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本')
with open(r'E:\a','r',encoding='utf-8') as a: with open(r'E:\a','r',encoding='utf-8') as a:
s=a.read() s=a.read()
for f in a: for f in a:
if '小强:10本' in a: if '小强:10本' in a:
print('有文件!') print('有文件!')
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