Commit 3aefe4cf by BellCodeEditor

save project

parent e8010d34
Showing with 7 additions and 5 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入(q退出):")
if unit== 'q': if unit== 'q':
break break
else: else:
...@@ -12,8 +12,8 @@ def new_input(): ...@@ -12,8 +12,8 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
finally: finally:
print("==============") print("==============")
return total return total
def sum(money): def sum(money):
...@@ -24,4 +24,4 @@ def sum(money): ...@@ -24,4 +24,4 @@ def sum(money):
price=new-input() price=new-input()
pay=input(price) pay=input(price)
print("您一共消费"+str(pay+"元!扫码还是微信") # print("您一共消费"+str(pay+"元!扫码还是微信")
\ No newline at end of file \ No newline at end of file
import func
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment