Commit d2ca3133 by BellCodeEditor

auto save

parent 99ceff6f
Showing with 1 additions and 1 deletions
......@@ -6,7 +6,7 @@ file1.write('李文:9本')
file1.write('张伟:16本')
file1.close()
file1=open('C:\\Users\\Administrator\\Desktop\\book.txt','a',encoding='utf-8')
file1.write('小强: 10\n')
file1.write('小强: 11\n')
file1.write('李明: 15本\n')
file1.close()
with open('C:\\Users\\Administrator\\Desktop\\book.txt','r',encoding='utf-8')as 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