Commit 839aab67 by BellCodeEditor

save project

parent 16831720
Showing with 5 additions and 2 deletions
...@@ -4,4 +4,7 @@ n.write("阿巴阿巴\n") ...@@ -4,4 +4,7 @@ n.write("阿巴阿巴\n")
n.close() 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()
\ No newline at end of file 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