Commit bc0ff02c by BellCodeEditor

save project

parent 855c0066
Showing with 7 additions and 2 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本 # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本' 张三:100
\ No newline at end of file n=open(r"C:\Users\Administrator\Desktop\test.txt",'a',encoding='utf-8')
n.write('小兰:12本\n')
n.write('小丽:11本\n')
n.write('李文:9本\n')
n.write('李文:张三:109本\n')
\ 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