diff --git a/func.py b/func.py
index 4f16492..9d3b553 100644
--- a/func.py
+++ b/func.py
@@ -18,3 +18,16 @@ def new_input():
     print(total)
 new_input()
 
+def sum(money):
+    count=0
+    for i in money:
+         count=count+i   
+    return count
+
+
+
+
+
+price=new_input()
+pay=sum(price)
+print("您一共消费了"+str(pay)+"元!")
\ No newline at end of file