Commit 3b52265a by BellCodeEditor

auto save

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