From 7de6621b07947e5181453bb43745beb22470a2f6 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 13 Mar 2021 12:00:37 +0800
Subject: [PATCH] save project

---
 o.py | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 o.py

diff --git a/o.py b/o.py
new file mode 100644
index 0000000..e0bd1df
--- /dev/null
+++ b/o.py
@@ -0,0 +1,25 @@
+def topp():
+    total = []
+    while True:
+        unit= input("请输入:")
+        if unit== 'q':
+            break
+        else:
+            try:
+                unit= int(unit)
+            except:
+                print("请输入整数")
+            else:
+                total.append(unit)
+    return total
+def sum(money):
+    coun=0
+    for i in money:
+        coun=coun+i
+    return coun
+price=topp() 
+pay=sum(price)  
+
+
+
+print("总分为:"+str(pay))
\ No newline at end of file
--
libgit2 0.25.0