From cd2b7a354b9d01db32b8ec40e5a315d916b8d081 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 13 Jun 2024 20:33:52 +0800 Subject: [PATCH] save project --- .py | 5 +++++ .ry | 0 __pycache__/func.cpython-37.pyc | Bin 0 -> 1767 bytes func.py | 24 ++++++++++++++++++++++++ 。py | 0 5 files changed, 29 insertions(+) create mode 100644 .py create mode 100644 .ry create mode 100644 __pycache__/func.cpython-37.pyc create mode 100644 func.py create mode 100644 。py diff --git a/.py b/.py new file mode 100644 index 0000000..ec802aa --- /dev/null +++ b/.py @@ -0,0 +1,5 @@ +import func +data=func.new_input() +score=func.sum(data) +print("发货:"+str(score)) + diff --git a/.ry b/.ry new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.ry diff --git a/__pycache__/func.cpython-37.pyc b/__pycache__/func.cpython-37.pyc new file mode 100644 index 0000000..df6932e 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..7b8ef35 --- /dev/null +++ b/func.py @@ -0,0 +1,24 @@ +def new_input(): + total = [] + while True: + unit= input("请输入:") + 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 diff --git "a/\343\200\202py" "b/\343\200\202py" new file mode 100644 index 0000000..e69de29 --- /dev/null +++ "b/\343\200\202py" -- libgit2 0.25.0