From a50112f9fde2c2d5230e6f18768c6764ffaade4d Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 1 Oct 2022 12:18:55 +0800
Subject: [PATCH] auto save

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

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