Commit 6cebfab3 by BellCodeEditor

auto save

parent 3cc3f68c
Showing with 1 additions and 1 deletions
...@@ -9,7 +9,7 @@ file.close() ...@@ -9,7 +9,7 @@ file.close()
with open(r'C:\Users\makcoo\Desktop\test.txt','w',encoding='utf-8') as file: with open(r'C:\Users\makcoo\Desktop\test.txt','w',encoding='utf-8') as file:
file.write('gggg') file.write('gggg')
file=open(r'C:\Users\makcoo\Desktop\test.txt','w',encoding='utf-8') file=open(r'C:\Users\makcoo\Desktop\test.txt','r',encoding='utf-8')
q=file.read() q=file.read()
print(q) print(q)
file.close() file.close()
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