diff --git a/diy.py b/diy.py index 73f4492..df76db2 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,4 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file = open(r'D:\Document And Settings2\Administrator\Desktop\text.txt','w',encoding='utf-8') +file.write('小兰:12本、小丽:11本、李文:9本、张伟:16本') +file.close() \ No newline at end of file