From 2ba0564a52c8fc90747ce1bcdad4fc8abee1dd2c Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 16 May 2021 11:47:46 +0800 Subject: [PATCH] auto save --- __pycache__/func.cpython-37.pyc | Bin 0 -> 573 bytes func.py | 26 ++++++++++++++++++++++++++ swin.py | 5 +++++ 3 files changed, 31 insertions(+) create mode 100644 __pycache__/func.cpython-37.pyc create mode 100644 func.py create mode 100644 swin.py diff --git a/__pycache__/func.cpython-37.pyc b/__pycache__/func.cpython-37.pyc new file mode 100644 index 0000000..6fb0145 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..263af4a --- /dev/null +++ b/func.py @@ -0,0 +1,26 @@ +def RMB(): + total = [] + while True: + unit= input("请输入:") + if unit== 'q': + break + else: + try: + int(unit) + except: + print("JHQ9U5,70Y7MEGSDOMXZMXFJNBHDF") + else: + total.append(unit) + return total + +S=RMB() +def TSB(S): + MISS=0 + for i in S: + i=int(i) + MISS+=i + return MISS +''' +SS=TSB(S) +print(SS) +''' \ No newline at end of file diff --git a/swin.py b/swin.py new file mode 100644 index 0000000..f302a98 --- /dev/null +++ b/swin.py @@ -0,0 +1,5 @@ +import func +dota1 = func.RMB() +dota2 = func.TSB(dota1) +score=dota2 +print(score'分!') \ No newline at end of file -- libgit2 0.25.0