Commit 33a15d4b by BellCodeEditor

auto save

parent 568e6104
Showing with 8 additions and 5 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
gg=open("r\C:\Users\legao-001\Desktop\hd".txt,"w",encoding="uft-8") gg=open(r"C:\Users\legao-001\Desktop\uuu.txt","w",encoding="uft-8")
gg.write("小强;15本") gg.writelines("dddd")
gg.write("小名;10本")
.
gg.close() gg.close()
\ No newline at end of file
gg=open(r"C:\Users\legao-001\Desktop\uuu.txt","a",encoding="uft-8")
gg.write("小强;10本")
gg.write("小蓝;10本")
gg.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