Commit 54047ea8 by BellCodeEditor

save project

parent 53212355
Showing with 1 additions and 1 deletions
......@@ -9,7 +9,7 @@ with open(r'C:\Users\Administrator\Desktop\text.txt','a',encoding='utf-8') as fi
file1.write("小强:12本\n李明:15本")
with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='utf-8') as file1:
for i in file1:
if '小强:10本' in file1:
if '小强:12本' in file1:
if'小兰:12本' in file1:
print("有小兰和小强")
else:
......
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