# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' n = open(r"C:\Users\Administrator\Desktop\123",test.txt,"w",encoding='utf-8')