From 3f482b17dc003c679562e16f8adae22c69e4c183 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 25 Jul 2021 09:07:17 +0800
Subject: [PATCH] save project

---
 diy.py  | 4 ++++
 diy2.py | 2 ++
 2 files changed, 6 insertions(+)
 create mode 100644 diy.py
 create mode 100644 diy2.py

diff --git a/diy.py b/diy.py
new file mode 100644
index 0000000..e999270
--- /dev/null
+++ b/diy.py
@@ -0,0 +1,4 @@
+# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
+file1=open('C:\\Users\\Public\\Desktop\\lm.txt','w',encoding='utf-8')
+file1.write('小兰:12本\n小丽:11本\n李文:9本\n张伟:16本')
+file1.close()
\ No newline at end of file
diff --git a/diy2.py b/diy2.py
new file mode 100644
index 0000000..39bb3e0
--- /dev/null
+++ b/diy2.py
@@ -0,0 +1,2 @@
+with open('C:\\Users\\Public\\Desktop\\lm.txt','a',encoding='utf-8') as file1:
+    file1.write('\n小明:2035464\n海沸江翻:56545')
\ No newline at end of file
--
libgit2 0.25.0