Commit 040dd1d1 by BellCodeEditor

save project

parent 5b66d821
Showing with 2 additions and 2 deletions
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
#file1.write("张伟:16本\n") #file1.write("张伟:16本\n")
#file1.close() #file1.close()
with open(r"C:\Users\admin\Desktop\test.txt","w",encoding='utf-8')as file1: with open(r"C:\Users\admin\Desktop\test.txt","w",encoding='utf-8')as file1:
file1.write("郑淏文:10本") file1.append("郑淏文:10本")
\ No newline at end of file \ 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