Commit 8dc8174e by BellCodeEditor

auto save

parent dc22b1a3
Showing with 15 additions and 0 deletions
file=open(r'C:\Users\玛酷\Desktop\test.txt','w',encoding='utf-8')
file.write('8v56rbh')
file.close
file=open(r'C:\Users\玛酷\Desktop\test.txt','a',encoding='utf-8')
file.write('8v56rbh')
file.close
with open(r'C:\Users\玛酷\Desktop\test.txt','w',encoding='utf-8') as file:
file.write('gbkegd')
file=open(r'C:\Users\玛酷\Desktop\test.txt','r',encoding='utf-8')
q=file.read()
print(q)
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