Commit e2613578 by BellCodeEditor

save project

parent be84de74
Showing with 4 additions and 4 deletions
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
# fil.close() # fil.close()
with open(r'C:\Users\Think\Desktop\pop.txt','r',encoding='utf-8')as fil: with open(r'C:\Users\Think\Desktop\pop.txt','r',encoding='utf-8')as fil:
for dada in fil: for dada in fil:
if'小强:10'in dada: if'小强:10'in dada:
print('数据在文件中') print('数据在文件中')
\ No newline at end of file \ 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