From 60b4c6abb19f882493e2b68b543701e54ae67e4b Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 8 Sep 2024 11:18:09 +0800
Subject: [PATCH] auto save

---
 func.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 func.py

diff --git a/func.py b/func.py
new file mode 100644
index 0000000..4395081
--- /dev/null
+++ b/func.py
@@ -0,0 +1,16 @@
+def new_input():
+    total = []
+    while True:
+        unit= input("请输入:")
+        if unit== 'q':
+            break
+        else:
+            try:
+                unit=int(unit)
+            except:
+                print("请重新输入一个数字")
+            else:    
+                total.append(unit)
+            print("_"*30)    
+    return total
+new_input()    
\ No newline at end of file
--
libgit2 0.25.0