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

---
 123456.py                       |  6 ++++++
 1234567                         |  4 ++++
 __pycache__/func.cpython-37.pyc | Bin 0 -> 695 bytes
 func.py                         | 28 ++++++++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 100644 123456.py
 create mode 100644 1234567
 create mode 100644 __pycache__/func.cpython-37.pyc
 create mode 100644 func.py

diff --git a/123456.py b/123456.py
new file mode 100644
index 0000000..0bc60ff
--- /dev/null
+++ b/123456.py
@@ -0,0 +1,6 @@
+import func
+
+data = func.new_input()
+score = func.sum(data)
+
+print("这位选手的总分是:"+str(score))
\ No newline at end of file
diff --git a/1234567 b/1234567
new file mode 100644
index 0000000..cff2f7d
--- /dev/null
+++ b/1234567
@@ -0,0 +1,4 @@
+import func
+
+data = func.nnew_input()
+score = 
\ No newline at end of file
diff --git a/__pycache__/func.cpython-37.pyc b/__pycache__/func.cpython-37.pyc
new file mode 100644
index 0000000..f20e6c2
Binary files /dev/null and b/__pycache__/func.cpython-37.pyc differ
diff --git a/func.py b/func.py
new file mode 100644
index 0000000..91f69ec
--- /dev/null
+++ b/func.py
@@ -0,0 +1,28 @@
+#def new_input():
+    total = []
+    while True:
+        unit= input("请输入(q退出):")
+        if unit == 'q':
+            break
+        else:
+            try:
+                unit = int(unit)
+            except:
+                print("请重新输入一个数字")
+            else:   
+                total.append(unit)
+            finally:
+                print("=")
+    return total
+
+
+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
--
libgit2 0.25.0