From ad999b8aa40e9061e8310a05ef85ec5e0f5c5462 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 2 Jun 2023 19:59:20 +0800 Subject: [PATCH] auto save --- diy.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 diy.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..5a15900 --- /dev/null +++ b/diy.py @@ -0,0 +1,9 @@ +# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +f = open(r"C:\Users\windoins\Desktop\123.txt",'w',encoding='utf-8') + +f.write('小丽:11本') +f.write('小兰:12本') +f.write('李文:9本') +f.write('李伟:16本') +f.write('俞老师:120000000美元') +f.close() -- libgit2 0.25.0