Commit 16013d7a by BellCodeEditor

save project

parent d245189a
Showing with 6 additions and 0 deletions
......@@ -5,3 +5,8 @@ with open(r'C:\Users\win 10\Desktop\po.txt','w',encoding='utf-8') as po:
po.write('李明:15\n')
with open(r'C:\Users\win 10\Desktop\po.txt','a',encoding='utf-8') as po:
po.write('小兰:12\n')
with open(r'C:\Users\win 10\Desktop\po.txt','r',encoding='utf-8') as po:
for data in po:
if '小兰:12' in data:
print('zai')
\ 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