From 4bb0dba760302354903a3deefb4abdaf8de71d77 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 23 Jun 2024 15:58:29 +0800
Subject: [PATCH] save project

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

diff --git a/func.py b/func.py
new file mode 100644
index 0000000..08c188c
--- /dev/null
+++ b/func.py
@@ -0,0 +1,21 @@
+def man():
+    total = []
+    while True:
+        unit= input("请输入:")
+        try:
+            unit=int(unit)
+        except:   
+            if unit== 'q':
+                break
+        else:
+            total.append(unit)
+    print(total)
+    return total
+list1=man()   
+def sum(jkl):
+    count=0
+    for i in jkl:
+        count=count+i
+    return count
+gu=sum(list1)
+print(gu)
--
libgit2 0.25.0