From bb5c8e707b8c8abb32185c066ee8d4582ee48164 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 25 Dec 2021 15:25:46 +0800
Subject: [PATCH] save project

---
 1.py | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/1.py b/1.py
index 2f9d900..32d78ad 100644
--- a/1.py
+++ b/1.py
@@ -1,3 +1,11 @@
-with open(r'C:\Users\22747\Desktop\www.txt,"r",encoding="utf-8")as a:
-b=a.readlines()
-print(b)
+x= open(r'C:\Users\bell007\Desktop\test.txt,'w',encoding='utf-8')
+x.write("小兰:12本\n")
+x.close()
+with open(r'C:\Users\bell007\Desktop\test.txt,'a',encoding='utf-8')as x:
+    x.write("小明:6本\n")
+    x.write("小军:6本\n")
+with open(r'C:\Users\bell007\Desktop\test.txt,'r',encoding='utf-8')as x:
+    for data in x:
+        if"小明:6本"in data:
+            print("数据在文件中")
+    
\ No newline at end of file
--
libgit2 0.25.0