Commit 8267c4f0 by BellCodeEditor

save project

parent 522fbcd0
Showing with 3 additions and 13 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' with open('d:\\桌面\\a.txt','a',encoding='utf-8') as ab:
#d=open(r"D:\桌面\s.txt","w",encoding="utf-8") ab.write("沙堆,12 34 45 67 80 97")
#d.write("小兰:12\n") \ No newline at end of file
#d.write('小丽:11本\n')
#d.write('李文:9本\n')
#d.close()
#d=open(r"D:\桌面\s.txt","a",encoding="utf-8")
#d.write("小红:34本\n")
#.close
with open(r"D:\桌面\s.txt","r",encoding="utf-8") as d:
a=d.read()
print(a)
\ 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