Commit 837d7069 by BellCodeEditor

save project

parent 253ffd85
Showing with 2 additions and 2 deletions
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#with open(r'C:\Users\stu100\Desktop\test.txt','a',encoding='UTF-8')as filel: #with open(r'C:\Users\stu100\Desktop\test.txt','a',encoding='UTF-8')as filel:
# filel.write('李文:9本\n') # filel.write('李文:9本\n')
with open(r'C:\Users\stu100\Desktop\test.txt','r',encoding='UTF-8')as filel: with open(r'C:\Users\stu100\Desktop\test.txt','r',encoding='UTF-8')as filel:
a=filel.read()
for data in filel: for data in filel:
if '小强:10'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