Commit 6a946ef7 by BellCodeEditor

auto save

parent ed598b45
Showing with 6 additions and 2 deletions
......@@ -13,8 +13,12 @@ with open(r'C:\Users\16420\Desktop\test.txt','a',encoding='utf-8') as file:
file.write('李明: 15本\n')
with open(r'C:\Users\16420\Desktop\book.txt','r',encoding='utf-8') as file1:
file.read('打电话的: 10本\n')
file.read('搭建的你: 34本\n')
for data in file1:
if '小强10本' in data:
print('小强数据存在')
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