From 694d71c15337caff32b3cd1308c596e8c0d7b6f0 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 13 Jul 2023 16:18:23 +0800 Subject: [PATCH] save project --- diy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy.py b/diy.py index 73f4492..7fb6ed4 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,3 @@ -# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file1=open(r'C:\Users\CM\Desktop\test.txt','w',encoding='uft-8') +file1.write('小兰:12本') +file1.close() \ No newline at end of file -- libgit2 0.25.0