From 9239c74b007dca9c69c47300720f82cb2263dd06 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 4 Nov 2023 09:02:35 +0800 Subject: [PATCH] save project --- diy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/diy.py b/diy.py index 73f4492..2540d01 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,7 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file1= open(r'c:\Users\CM\desktop\book.txt','w',encoding='utf-8') +file1.write('本\n') +file1.write('小丽:11本\n') +file1.write('李文:9本\n') +file1.write('张伟:16本\n') +file1.close() \ No newline at end of file -- libgit2 0.25.0