From 88612a4dddbf0b4b8b9f3eefc2c89b93c5ec51a4 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 11 Dec 2021 14:09:06 +0800 Subject: [PATCH] save project --- diy.py | 11 +++++++++++ nhyhgyfhfyhfyghfg.py | 0 2 files changed, 11 insertions(+) create mode 100644 diy.py create mode 100644 nhyhgyfhfyhfyghfg.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..17a2adc --- /dev/null +++ b/diy.py @@ -0,0 +1,11 @@ +# 写入同学们的捐赠明细:'小兰:12本' +lihip=open(r"C:\Users\Administrator\Desktop\text.txt","a",encoding="utf-8") +lihip.write("小兰:12\n小丽:11\n李文:9\n张伟:16") +lihip.close() +lihip=open(r"C:\Users\Administrator\Desktop\text.txt","a",encoding="utf-8") +lihip.write("小强:12\n李明:15") +lihip.close() +lihip=open(r"C:\Users\Administrator\Desktop\text.txt","r",encoding="utf-8") +a=lihip.read() +print(a) +lihip.close() \ No newline at end of file diff --git a/nhyhgyfhfyhfyghfg.py b/nhyhgyfhfyhfyghfg.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/nhyhgyfhfyhfyghfg.py -- libgit2 0.25.0