From 7e0d736a7929a413c0070d41f3dfda957a1484f6 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 28 Aug 2021 16:55:56 +0800
Subject: [PATCH] auto save

---
 func.py | 23 +++++++++++++++++++++++
 sb.py   |  3 +++
 2 files changed, 26 insertions(+)
 create mode 100644 func.py
 create mode 100644 sb.py

diff --git a/func.py b/func.py
new file mode 100644
index 0000000..3a9358e
--- /dev/null
+++ b/func.py
@@ -0,0 +1,23 @@
+def fuck():
+    total = []
+    while True:
+        try:
+            unit= input("请输入:")
+            if unit== 'q':
+                break
+            else:
+                unit=int(unit)
+                total.append(unit)
+        except:
+            print("请输入数字哦")
+    return total
+
+
+def sum(money):
+    count=0
+    for i in money:
+        count=count+i
+    return count
+sb=fuck()
+sa=sum(sb)
+print("您总共需要支付",sa,"元")
\ No newline at end of file
diff --git a/sb.py b/sb.py
new file mode 100644
index 0000000..30664ec
--- /dev/null
+++ b/sb.py
@@ -0,0 +1,3 @@
+date=func.fuck()
+score=func.sum(date)
+print("这个傻逼被外星人清除了",score,"记忆")
\ No newline at end of file
--
libgit2 0.25.0