From 0a99217160e76978a2b210d12c4e58cd62833c5a Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 22 Jul 2022 18:20:42 +0800 Subject: [PATCH] save project --- diy.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 diy.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..e3fecf3 --- /dev/null +++ b/diy.py @@ -0,0 +1,3 @@ +# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +book.txt=open(r'C:\Users\CM\Dsektop\test.txt','w',encoding='utf=8') +book.txt.write('小兰:12本\n','小丽:11本\n','李文:9本\n','张伟:16本\n','小强:12本\n','李明:') \ No newline at end of file -- libgit2 0.25.0