Commit 839aab67 by BellCodeEditor

save project

parent 16831720
Showing with 4 additions and 0 deletions
...@@ -5,3 +5,6 @@ n.close() ...@@ -5,3 +5,6 @@ n.close()
n=open(r"C:\Users\Administrator\Desktop\我是大聪明.txt","a",encoding="utf-8") n=open(r"C:\Users\Administrator\Desktop\我是大聪明.txt","a",encoding="utf-8")
n.write("abaaba\n") n.write("abaaba\n")
n.close() n.close()
with open(r"C:\Users\Administrator\Desktop\我是大聪明.txt","r",encoding="utf-8") as a:
n=a.read()
print(n)
\ 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