From b4a38493e9298cd43d7a408ab6b71e19fefb8c60 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 12 Sep 2021 14:18:02 +0800 Subject: [PATCH] auto save --- diy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/diy.py b/diy.py index 73f4492..af5a586 100644 --- a/diy.py +++ b/diy.py @@ -1 +1,5 @@ # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +file1 = open(r'D:\Document And Settings2\Administrator\Desktop\text.txt','w',encoding='utf-8') +file1.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本\n') + +file1.close() \ No newline at end of file -- libgit2 0.25.0