From d50c11611a419ace2b57a690794febe836690bc6 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 11 Jun 2022 08:58:39 +0800 Subject: [PATCH] save project --- diy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/diy.py b/diy.py index c91381d..5fe6b6e 100644 --- a/diy.py +++ b/diy.py @@ -1,4 +1,5 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' -fill1.open(r'C:\Users\86175\Desktop\book.text''w',encoding=uft-8): -fill1.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本') -fill1.close() \ No newline at end of file +#fill1.open(r'C:\Users\86175\Desktop\book.text''w',encoding=uft-8) +#fill1.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本') +#fill1.close() +with open(r'C:\Users\86175\Desktop\book.text','a',encoding='uft-8')as -- libgit2 0.25.0