Commit d7191594 by BellCodeEditor

auto save

parent f6d6d97a
Showing with 3 additions and 3 deletions
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#file1.write('张伟:16本') #file1.write('张伟:16本')
#file1.close() #file1.close()
file1=(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8') file1=open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')
file1.write('小强:12本\n') file1.write('小强:12本\n')
file1.write('李明:15本\n') file1.write('李明:15本\n')
file1.cloes() file1.close()
\ No newline at end of file \ 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