Commit 2272f141 by BellCodeEditor

auto save

parent c6ce2648
Showing with 4 additions and 3 deletions
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
filter=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') filter=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8')
filter.write('小兰: 12本') filter.write('小兰: 12本')
filter.close() filter.close()
with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8') as file: with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8') as filter:
filter.write("小强:13本") filter.write("小强:13本")
\ 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