From 9bf345ceb077886aa9cf7b9ebcec07f58bc724f0 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 25 Sep 2022 16:32:07 +0800 Subject: [PATCH] save project --- diy.py | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 diy.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..3743b5c --- /dev/null +++ b/diy.py @@ -0,0 +1,84 @@ +# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' +filel=open(r"C:\Users\Administrator\Desktop\book.txt",'w',encoding='utf-8') +filel.write('小兰:12本\n') +filel.write('小丽:11本\n) +filel.write('李文:9本\n') +filel.write('张伟:16本\n') +filel.close() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- libgit2 0.25.0