From ecbe3ef3f0bd7c447c9ba9764ca3355d0f6f8ef2 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 22 Oct 2022 10:53:53 +0800
Subject: [PATCH] auto save

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

diff --git a/func.py b/func.py
new file mode 100644
index 0000000..5ab1494
--- /dev/null
+++ b/func.py
@@ -0,0 +1,29 @@
+def new_input():
+    total = []
+    while True:
+            money = input("请输入(q退出):")
+            if money == 'q':
+                break
+            else:
+                try:
+                    money = int(money)
+                except:
+                    print("请输入输入一个数字")
+                else:
+                    total.append(money)
+                finally:
+                    print("========================================")
+    return total    
+
+
+def sum (money)
+    count = 0
+    for i in money:
+    count = count + i
+    range count
+
+
+print = new_input()
+new = sun(price)
+print(您一共消费了多少元)
+    
\ No newline at end of file
--
libgit2 0.25.0