From 93269e65e6725d14c55e65b297d646699244ec70 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Fri, 13 Aug 2021 19:43:02 +0800
Subject: [PATCH] auto save

---
 first.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 first.py

diff --git a/first.py b/first.py
new file mode 100644
index 0000000..f95c28e
--- /dev/null
+++ b/first.py
@@ -0,0 +1,15 @@
+# file=open(r'C:\Users\David\Desktop\text.txt','r',encoding='utf-8')
+# a=file.read()
+# print(a)
+# file.close()
+
+# with open(r'C:\Users\David\Desktop\text.txt','r',encoding='utf-8') as file1 :
+#     a=file1.read()
+#     print(a)
+
+with open(r'C:\Users\David\Desktop\text.txt','r',encoding='utf-8') as file2:
+    for data in file2:
+        if "小强:10本" in data:
+            print("数据在文件中")
+
+
--
libgit2 0.25.0