Commit c259f809 by BellCodeEditor

auto save

parent 1485c65b
Showing with 8 additions and 1 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
pen1=r"C:\Users\Administrator\Desktop\你的文件夹"mode'w' encoding'utf-8'
pen1=open(r"C:\Users\Administrator\Desktop\你的文件.txt",'w',encoding='utf-8')
pen1.write('小兰:12本\n')
pen1.write('小丽:11本\n')
pen1.write('李文:9本\n')
pen1.write('张伟:16本\n')
#pen1.write('妈妈我爱你,I Love you!')
pen1.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