From 42f53f9f94e094b418d7c17619f1d6662277fbe9 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 22 May 2022 11:10:14 +0800
Subject: [PATCH] auto save

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

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