Commit 64e9c652 by BellCodeEditor

auto save

parent b6ace526
Showing with 4 additions and 0 deletions
......@@ -6,5 +6,9 @@ with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') as fi
# file.write('李文:9本\n')
# file.write('张伟:16本\n')
# with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file:
with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') as file:
for data in file:
if"张伟:16本"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