From 1f074caeef48e286a6bc7efe6854d1a09c57dfe5 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 20 Jun 2021 16:55:47 +0800 Subject: [PATCH] save project --- diy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diy.py b/diy.py index 7c92c3b..7e6fb96 100644 --- a/diy.py +++ b/diy.py @@ -1,7 +1,7 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' -f=open('C:\\Users\\EDZ\\Desktop\\book.txt','w',encoding='utf-8') -f.write('小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本') -f.close() +with open('C:\\Users\\EDZ\\Desktop\\book.txt','a',encoding='utf-8')as f: + f write('12') + -- libgit2 0.25.0