Commit 1f3ffd9a by BellCodeEditor

save project

parent 9f90b149
Showing with 4 additions and 6 deletions
day = open(r"C:\Users\3\Desktop\test.txt",'w',encoding='utf-8')
day.write('小兰:12本、')
day.write('小丽:11本、')
day.write('李文:9本、')
day.write('张伟:16本')
\ No newline at end of file
with open(r"C:\Users\3\Desktop\test.txt",'a',encoding='utf-8')as day:
day.write('小强:12本\n')
day.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