Commit 621ca111 by BellCodeEditor

auto save

parent 928b05d1
Showing with 10 additions and 5 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
felm = open(r"C:\Users\admin\Desktop\test.txt","w",encoding="utf-8")
felm.write('小兰:12本\n')
felm.write('小丽:11本\n')
felm.write('李文:9本\n')
felm.write('张伟:16本\n')
# felm = open(r"C:\Users\admin\Desktop\test.txt","w",encoding="utf-8")
# felm.write('小兰:12本\n')
# felm.write('小丽:11本\n')
# felm.write('李文:9本\n')
# felm.write('张伟:16本\n')
# felm.close()
felm = open(r"C:\Users\admin\Desktop\test.txt","a",encoding="utf-8")
felm.admin('小强:21本\n')
felm.admin('小明:17本\n')
felm.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