Commit 1522b006 by BellCodeEditor

save project

parent c1ecbdce
Showing with 1 additions and 1 deletions
......@@ -8,7 +8,7 @@
# file1.write('小强:12本\n')
# file1.write('李明:16本\n')
# file1.close()
with open(r"C:\Users\16064\Desktop\book.txt",'w',encoding='utf-8') as
with open(r"C:\Users\16064\Desktop\book.txt",'a',encoding='utf-8') as
file:
file.write('小强:12本\n')
file.write('李明:16本\n')
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