Commit fcc268d2 by BellCodeEditor

save project

parent da1441cb
Showing with 4 additions and 2 deletions
...@@ -6,4 +6,6 @@ f.write('李文:9本\n') ...@@ -6,4 +6,6 @@ f.write('李文:9本\n')
# f.close() # f.close()
f=open(r'D:\test.txt','a',encoding='utf-8') f=open(r'D:\test.txt','a',encoding='utf-8')
f.write('张伟:16本\n') f.write('张伟:16本\n')
f.close() f.close()
\ No newline at end of file with open(r'D:\test.txt','a',encoding='utf-8') as f:
f.write('小明:22本')
\ 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