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