diff --git a/func.py b/func.py index 6fbc8bd..e75154b 100644 --- a/func.py +++ b/func.py @@ -1,17 +1 @@ -def store(): - total = [] - while True: - money = input("请输入(q退出):") - if money == 'q' - break - else: - try: - money = int(money) - except: - print("重新输入") - else: - total.append(money) - print("滚"*30) - return total -return = store() -print(result) +print("hello world") \ No newline at end of file diff --git "a/\345\260\261\345\233\236\345\256\266\345\245\275\345\245\275.py" "b/\345\260\261\345\233\236\345\256\266\345\245\275\345\245\275.py" index b86c53c..0309468 100644 --- "a/\345\260\261\345\233\236\345\256\266\345\245\275\345\245\275.py" +++ "b/\345\260\261\345\233\236\345\256\266\345\245\275\345\245\275.py" @@ -1,5 +1,2 @@ -import func -a=func.store() -b=func.sum(a) -print("你的分数是"+str(b)) \ No newline at end of file + \ No newline at end of file