From 110921365206ad0d404939903c89c3ed2bf30f92 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 15 May 2021 17:02:44 +0800
Subject: [PATCH] save project

---
 diy.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 diy.py

diff --git a/diy.py b/diy.py
new file mode 100644
index 0000000..cb5eaa6
--- /dev/null
+++ b/diy.py
@@ -0,0 +1,13 @@
+# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
+
+#file1=open(r'C:\Users\Administrator\Desktop\a.txt','w',encoding='utf-8')
+#file1.write('小兰:12本\n')
+#file1.write('小丽:11本\n')
+#ile1.write('李文:9本\n')
+#file1.write('张伟:16本\n')
+#file1.close()
+
+with open(r'C:\Users\Administrator\Desktop\book.txt','r',encoding='utf-8')as file:
+    for data in file:
+        if 'q' in data:
+            print('a')
\ No newline at end of file
--
libgit2 0.25.0