Commit 3f23ed8a by BellCodeEditor

save project

parent 9f60149f
Showing with 5 additions and 0 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
# u=open(r"d:\Users\Administrator\Desktop\新建文本文档 (3).txt","a",encoding='utf-8')
with open(r'd:\Users\Administrator\Desktop新建文本文档 (3).txt',"a",encoding='utf-8')as u:
S=u.read()
u.write(s)
u.write('小兰:12本\n')
# u.write('小丽:11本')
# u.write('李文:9本')
......@@ -8,4 +10,6 @@ with open(r'd:\Users\Administrator\Desktop新建文本文档 (3).txt',"a",encodi
u.write('小强:10本\n')
u.write('李铭:15本\n')
# u.close()
\ 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