Commit d29a5eb0 by BellCodeEditor

save project

parent fa324e10
Showing with 4 additions and 0 deletions
......@@ -7,6 +7,10 @@ with open(r"C:\Users\Administrator\Desktop\111.txt","w",encoding="utf-8")as w:
with open(r"C:\Users\Administrator\Desktop\111.txt","a",encoding="utf-8")as s:
s.write("小强:12本\n")
s.write("李明:15本\n")
with open(r"C:\Users\Administrator\Desktop\111.txt","r",encoding="utf-8")as a:
for i in a:
if "小强:12本" in i:
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