Commit 99026106 by BellCodeEditor

save project

parent 5d62f327
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# with open(r'C:\Users\Administrator\Desktop\ardunio素材\test.txt','a',encoding='utf-8') as file1: # with open(r'C:\Users\Administrator\Desktop\ardunio素材\test.txt','a',encoding='utf-8') as file1:
# file1.write('小强:10本\n') # file1.write('小强:10本\n')
# file1.write('小明:15本\n') # file1.write('小明:15本\n')
with open(r'C:\Users\Administrator\Desktop\ardunio素材\test.txt','a',encoding='utf-8') as file1: with open(r'C:\Users\Administrator\Desktop\ardunio素材\test.txt','a',encoding='utf-8') as file1:
for date in file1: for date in file1:
if '小强:10本' in date: if '小强:10本' in date:
print('在') 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