Commit c27cbd1b by BellCodeEditor

save project

parent 3b52265a
Showing with 4 additions and 3 deletions
...@@ -5,5 +5,7 @@ ...@@ -5,5 +5,7 @@
#filel.write('李文:9本\n') #filel.write('李文:9本\n')
#filel.write('李文:16本\n') #filel.write('李文:16本\n')
#filel.close() #filel.close()
with open(r'C:\Users\DELL\Desktop\1.txt','a',encoding='utf-8')as file1: with open(r'C:\Users\DELL\Desktop\1.txt','r',encoding='utf-8')as file1:
filel.write('小兰:12本\n') for data in file1:
\ No newline at end of file if "小丽:11本" in data:
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