Commit 8d864e44 by BellCodeEditor

save project

parent 910109c1
Showing with 1 additions and 1 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# file.write('李文:9本') # file.write('李文:9本')
# file.write('张伟:16本') # file.write('张伟:16本')
# file.close() # file.close()
with file=open(r"C:\Users\Administrator\Desktop\新建文件夹\tas.txt","w",encoding="utf-8") as file: with open(r"C:\Users\Administrator\Desktop\新建文件夹\tas.txt","a",encoding="utf-8") as file:
file.write("小强:12本") file.write("小强:12本")
file.write("李明:15本") file.write("李明:15本")
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