From 3cc03ecfa6ad26f88bf17c810c341ddb08262a85 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 2 Jan 2021 20:12:42 +0800
Subject: [PATCH] save project

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

diff --git a/func.py b/func.py
new file mode 100644
index 0000000..91aed6c
--- /dev/null
+++ b/func.py
@@ -0,0 +1,28 @@
+def  adad():
+    total = []
+    while True:
+    
+        unit= input("请输入")
+        if unit == 'q':
+            break
+        else:
+            try:
+                unit=int(unit)
+                
+            except :
+                print("请重新输入")
+            else:
+
+                total.append(unit)
+       
+    return total
+def bate(unit):
+    count=0
+    for i in unit:
+        count=count+i
+    return count      
+pou=adad()
+pay=sum(pou)
+print("你一共打印了"+str(pay))
+
+
--
libgit2 0.25.0