Commit 1a82fc5f by BellCodeEditor

save project

parent 0f327959
Showing with 5 additions and 0 deletions
......@@ -9,3 +9,8 @@ with open(r'C:\Users\Administrator\Desktop','a',encoding='utf-8') as
x:
x.write('小丽:11本\n')
x.write('李文:9本\n')
for data in x:
if "小丽:11本" in data:
print('小丽在文件中')
if '小强:10本' in data:
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