Commit c653e78c by BellCodeEditor

save project

parent 4b3abdb4
Showing with 1 additions and 1 deletions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# file.write('E:12本\n') # file.write('E:12本\n')
# file.write('F:15本\n') # file.write('F:15本\n')
with open(r"C:\Users\玛酷机器人\Desktop\book.txt",'a',encoding='UTF-8') as file1: with open(r"C:\Users\玛酷机器人\Desktop\book.txt",'r',encoding='UTF-8') as file1:
for dada in file1: for dada in file1:
if "A:12本" in dada: if "A:12本" in dada:
print('A在文件中') print('A在文件中')
......
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