Commit 133a50bd by BellCodeEditor

save project

parent 3f23ed8a
Showing with 4 additions and 4 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)
x=u.read()
print(x)
u.write('小兰:12本\n')
# u.write('小丽:11本')
# u.write('李文:9本')
# u.write('张伟:16本')
u.write('小强:10本\n')
u.write('李铭:15本\n')
# u.write('小强:10本\n')
# u.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