From a8af2aa5cb21b4a9068bff2708d4abd01cf4f5ad Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Mon, 20 Sep 2021 10:23:56 +0800 Subject: [PATCH] auto save --- func.py | 23 +++-------------------- sssss.py | 1 + 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/func.py b/func.py index d96c075..3f2ff2d 100644 --- a/func.py +++ b/func.py @@ -1,22 +1,5 @@ -def cnm(): - total = [] - while True: - unit= input("请输入:") - if unit== 'q': - break - else: - try: - unit=int(unit) - except: - print("请输入整数") - else: - total.append(unit) - finally: - print('-'*30) - print(total) - return total -b=cnm() -cnm() -print(b) + + + diff --git a/sssss.py b/sssss.py index e868ada..c609b05 100644 --- a/sssss.py +++ b/sssss.py @@ -1,3 +1,4 @@ import func data=func.cnm() score=func.c(data) +print(score) \ No newline at end of file -- libgit2 0.25.0