Commit 6781c0d6 by BellCodeEditor

auto save

parent cd9f620c
Showing with 3 additions and 2 deletions
......@@ -6,4 +6,5 @@ file.write("小丽:11本\n")
file.write("李文:9本\n")
file.write("张伟:16本n")
file=open(r"c:\Users\GT\Desktop\book.txt","a",encoding="utf-8")
\ No newline at end of file
with open(r"c:\Users\GT\Desktop\book.txt","a",encoding="utf-8") as file:
file.write("悟空:100本\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