From 4af126fa4bcee4d8ddc2e1af3aa305278ed47358 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 8 Apr 2023 13:58:07 +0800 Subject: [PATCH] save project --- diy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/diy.py b/diy.py index c5a5d1d..c095ecb 100644 --- a/diy.py +++ b/diy.py @@ -1,5 +1,3 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' -a = open(r'C:\Users\Administrator\Desktop\邓语涵.doc',"w") -a.write("yes\n") -a.write('\n杜建国会覅与对方\n') -a.close() \ No newline at end of file +with open(r'C:\Users\Administrator\Desktop','a',encoding='utf-8')as file +file.write("小兰:12本\n") \ No newline at end of file -- libgit2 0.25.0