Commit 954084fe by BellCodeEditor

save project

parent 51196aab
Showing with 4 additions and 3 deletions
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
# a.write('李文:9本') # a.write('李文:9本')
# a.write('张伟:16本') # a.write('张伟:16本')
# a.close() # a.close()
a=open(r"C:\Users\EDZ\Desktop\text.txt",'a',encoding='UTF-8') a= with open(r"C:\Users\EDZ\Desktop\text.txt",'a',encoding='UTF-8')as:
a.write() a.write('小强:12本')
\ No newline at end of file a.write('李明:15本')
\ 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