Commit 875bac87 by BellCodeEditor

save project

parent b45939f0
Showing with 8 additions and 5 deletions
......@@ -4,8 +4,11 @@
# f.write('小丽:11本')
# f.write('李文:9本')
# f.write('张伟:16本')
with open(r"C:\Users\Lynde\Desktop\panda.txt",'a',encoding='utf-8') as f:
f.write('小兰:12本\n')
f.write('小丽:12本\n')
f.write('李文:12本\n')
with open(r"C:\Users\Lynde\Desktop\panda.txt",'r',encoding='utf-8') as f:
# f.write('小兰:12本\n')
# f.write('小丽:11本\n')
# f.write('李文:9本\n')
# f.write('小强:10本\n')
for data in f:
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