diy.py 247 Bytes Edit 1 2 3 4 # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' chenlexuan=open(r"C:\Users\客家话吧\Desktop\chenlexuan.txt","w",encoding="utf-8") chenlexuan.write('小兰:12本') chenlexuan.close()