diff --git a/func.py b/func.py index 1ab6011..98d558a 100644 --- a/func.py +++ b/func.py @@ -1,18 +1,8 @@ -def new_input(): - total = [] - while True: - unit= input("请输入(q退出):") - if unit== 'q': - break - else: - try: - total.append(unit) -print(total) - -import func - - - -price =new_input() -pay =sum(price) -print("总价:"=str(score)) \ No newline at end of file +total = [] +while True: + unit= input("请输入:") + if unit== 'q': + break + else: + total.append(unit) +print(total) \ No newline at end of file