Commit 5a315eea by BellCodeEditor

save project

parent fd77e5ca
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# file1.write("b:11本\n") # file1.write("b:11本\n")
# file1.write("c:9本\n") # file1.write("c:9本\n")
# file1.write("d:16本\n") # file1.write("d:16本\n")
with open(r"C:\Users\Administrator\Desktop\book.txt","a",encoding="utf-8")as file: with open(r"C:\Users\Administrator\Desktop\book.txt","r",encoding="utf-8")as file:
for i in file: for i in file:
if "e:10本"in i: if "e:10本"in i:
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