Commit 1bb200a1 by BellCodeEditor

save project

parent d9b244bf
Showing with 4 additions and 5 deletions
f1=open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')
#f1.write('小兰:10/n')
f1.write('小强:12/n')
f1.write('小明:10/n')
while open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')as f1:
for data in f1:
if '小强:10'in data:
print("有")
f1.close()
......
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