diff --git a/func.py b/func.py
new file mode 100644
index 0000000..c96d4d1
--- /dev/null
+++ b/func.py
@@ -0,0 +1,24 @@
+def new_input():
+    total = []
+    while True:
+        unit= input("请输入:")
+        if unit== 'q':
+            break
+        else:
+            try:
+                int=int(unit)
+            except:
+                print("请输入数字") 
+            else:
+                total.append(unit)
+    #print(total)
+    return total
+def count(money):
+    sum=0
+    for i in money:
+        sum+=i
+    return sum  
+abc=new_input()
+cba=count(abc)
+print(cba)
+