Commit 5ceeda60 by BellCodeEditor

save project

parent 30cb740e
Showing with 8 additions and 2 deletions
...@@ -5,4 +5,11 @@ filel.write('小丽:11本') ...@@ -5,4 +5,11 @@ filel.write('小丽:11本')
filel.write('李文:9本') filel.write('李文:9本')
filel.write('张伟:16本') filel.write('张伟:16本')
#关闭文件 #关闭文件
filel.close() filel.close()
\ No newline at end of file with open(r'C:\Users\凤凰机器人金科3\Desktop\test.txt','a',encoding='utf-8')as filel2:
filel2.write('小强:12本\n')
filel2.write('李明:15本\n')
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