Commit d1ad46a9 by BellCodeEditor

save project

parent a8a0126e
Showing with 3 additions and 1 deletions
...@@ -6,4 +6,5 @@ ...@@ -6,4 +6,5 @@
# file1.write('张伟:16本\n') # file1.write('张伟:16本\n')
# file1.close() # file1.close()
with open(r"C:\Users\Administrator\Desktop\test2.txt",'a',encoding='utf-8') as file1: with open(r"C:\Users\Administrator\Desktop\test2.txt",'a',encoding='utf-8') as file1:
file1.write('小强:15本') file1.write('小强:15本\n')
file1.write('老王:12本\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