Commit 3b52265a by BellCodeEditor

auto save

parent 26992a7c
Showing with 3 additions and 6 deletions
......@@ -5,8 +5,5 @@
#filel.write('李文:9本\n')
#filel.write('李文:16本\n')
#filel.close()
#with open(r'C:\Users\DELL\Desktop\1.txt','r',encoding='utf-8')as file1:
with open(r'C:\Users\DELL\Desktop\1.txt','r',encoding='utf-8')as file1:
for data in data:
it'小强:10本'in data:
print('数据中在文件中')
\ No newline at end of file
with open(r'C:\Users\DELL\Desktop\1.txt','a',encoding='utf-8')as file1:
filel.write('小兰:12本\n')
\ 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