Commit 985bc83d by BellCodeEditor

save project

parent 91909598
Showing with 5 additions and 3 deletions
...@@ -5,5 +5,7 @@ ...@@ -5,5 +5,7 @@
#filel.write('李文:9本') #filel.write('李文:9本')
#filel.write('张伟:16本') #filel.write('张伟:16本')
#filel.close() #filel.close()
with open(r"C:\Users\Administrator\Desktop\text.txt",'a',encoding='utf-8')as filel: with open(r"C:\Users\Administrator\Desktop\text.txt",'r',encoding='utf-8')as filel:
filel.write('好帖:20本') for data in filel:
\ No newline at end of file if '好帖:20本'in data:
print("1")
\ No newline at end of file
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