Commit d760465c by BellCodeEditor

save project

parent 90bfa6f4
Showing with 3 additions and 5 deletions
# 写入同学们的捐赠明细:c
s=open(r"C:\Users\lenovo\Desktop\sb.txt","w",encoding="utf-8")
s.write('小明:12本')
s.close()
\ No newline at end of file
# 写入同学们的捐赠明细:小红:14
with open(r"C:\Users\lenovo\Desktop\sb.txt","a",encoding="utf-8")as s:
s.write('小红:14\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