Commit d044d7b9 by BellCodeEditor

save project

parent 1412296c
Showing with 8 additions and 3 deletions
...@@ -6,5 +6,10 @@ file=open(r'C:\Users\makcoo\Desktop\test.txt','a',encoding='utf-8') ...@@ -6,5 +6,10 @@ file=open(r'C:\Users\makcoo\Desktop\test.txt','a',encoding='utf-8')
file.write('G') file.write('G')
file.close() file.close()
with open(r'C:\Users\makcoo\Desktop\test.txt','w',encoding='utf-8') as: with open(r'C:\Users\makcoo\Desktop\test.txt','a',encoding='utf-8') as file:
file.write('gggggg') file.write('gggggg')
\ No newline at end of file
file=open(r'C:\Users\makcoo\Desktop\test.txt','r',encoding='utf-8')
q=file.read()
print(q)
file.close()
\ 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