Commit 5e8ed5fe by BellCodeEditor

save project

parent 00c72f5b
Showing with 5 additions and 2 deletions
......@@ -6,5 +6,7 @@ with open(r'C:\Users\Administrator\Desktop\cl.txt','a',encoding='utf-8') as file
file11.write('张伟:16本')
file11.write('张强:11本')
file11.write('李伟:19本')
with open(r'C:\Users\Administrator\Desktop\cl.txt','r',encoding='utf-8') as file11:
for data in file11
if '张强:11本' in data:
print('张强在文件里')
\ 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