From a00070c3314ff1599a784584b412be8c9c3a3587 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 19 Jun 2021 14:13:58 +0800 Subject: [PATCH] save project --- diy.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/diy.py b/diy.py index b6b9f0b..73665f1 100644 --- a/diy.py +++ b/diy.py @@ -1,5 +1,7 @@ -# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、张伟:16本'' a=open(r"C:\Users\22747\Desktop\qqtxt","w",encoding="utf-8") -w={'小兰:12本','小丽:11本','李文:9本',"张伟:16本"} -a.write("w") +a.write('小兰:12本\n') +a.write('小丽:11本\n') +a.write('李文:9本\n') +a.write("张伟:16本\n") a.close() \ No newline at end of file -- libgit2 0.25.0