Commit 69fe8760 by BellCodeEditor

auto save

parent 04531c3f
Showing with 5 additions and 2 deletions
...@@ -17,4 +17,7 @@ for data in file: ...@@ -17,4 +17,7 @@ for data in file:
new_data+=data new_data+=data
file=open(r'C:\Users\MKHG1\Desktop\新建文本文档.txt','w',encoding='utf-8') file=open(r'C:\Users\MKHG1\Desktop\新建文本文档.txt','w',encoding='utf-8')
file.write(new_data) file.write(new_data)
file.close() file.close()
\ No newline at end of file file=open(r'C:\Users\MKHG1\Desktop\新建文本文档.txt','r',encoding='utf-8')
a=file.read()
print(a)
\ 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