Commit a2a9193b by BellCodeEditor

save project

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