Commit c11638dd by BellCodeEditor

save project

parent 69223f51
Showing with 4 additions and 4 deletions
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# file.write('李文:9本 \n') # file.write('李文:9本 \n')
# file.write('张伟:16本 ') # file.write('张伟:16本 ')
# file.close() # file.close()
# file open(r'C:\Users\Administrator\Desktop\jm.txt','a' ,encoding='UTF-8') # file=open(r'C:\Users\Administrator\Desktop\jm.txt','a' ,encoding='UTF-8')
# file.write('兰:12本 \n') # file.write('兰:12本 \n')
with open(r'C:\Users\Administrator\Desktop\jm.txt','a' ,encoding='UTF-8') as file with open(r'C:\Users\Administrator\Desktop\jm.txt','a' ,encoding='UTF-8') as file:
file.write('兰:12本 \n') file.write('兰:12本 \n')
\ 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