Commit 5b2d1314 by BellCodeEditor

save project

parent fc72df33
Showing with 4 additions and 4 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# lll.close() # lll.close()
#with open(r"C:/Users/Administrator/Desktop/jj.txt","a",encoding="utf-8") as file: #with open(r"C:/Users/Administrator/Desktop/jj.txt","a",encoding="utf-8") as file:
#file.write("小兰:12本\n") #file.write("小兰:12本\n")
with open (r"C:/Users/Administrator/Desktop/jj.txt","a",encoding="utf-8") as with open (r"C:/Users/Administrator/Desktop/jj.txt","r",encoding="utf-8") as file:
a = file.read() for i in file:
for i in a: if "小兰" in i:
print(a) print("uj")
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