Commit a711dc66 by BellCodeEditor

auto save

parent b5005af3
Showing with 4 additions and 0 deletions
...@@ -6,5 +6,9 @@ with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') as fi ...@@ -6,5 +6,9 @@ with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') as fi
# file.write('李文:9本\n') # file.write('李文:9本\n')
# file.write('张伟:16本\n') # file.write('张伟:16本\n')
# with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file: # with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file:
a=file.write(new_data)
with open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8') as file:
a=file.read()
print(a)
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