From dc7a4bdf1f4fb97ff606c31062f9f95bcbd5bffc Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 28 Nov 2021 09:07:37 +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..a382336
--- /dev/null
+++ b/func.py
@@ -0,0 +1,16 @@
+def b():
+    total = []
+    while True:
+        unit= input("请输入:")
+        if unit== 'q':
+            break
+        else:
+            try:
+                unit=int(unit)
+            except:
+                print("输入错误")
+            else:
+                total.append(unit)
+    return total
+a=b()
+print(a)
\ No newline at end of file
--
libgit2 0.25.0