From 1f26a875af745652c7f92310c311fde73ab99cc8 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 24 Jul 2021 19:18:52 +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..9266d86
--- /dev/null
+++ b/func.py
@@ -0,0 +1,17 @@
+def new_input():
+    total = []
+    while True:
+        unit= input("请输入:")
+        if unit== 'q':
+            break    
+        else:
+            try:
+                unit=int(unit)
+            except:
+                print('please write again')
+            else:
+                total.append(unit)
+    print(total)
+    return total
+
+new_input()
\ No newline at end of file
--
libgit2 0.25.0