Commit 3aefe4cf by BellCodeEditor

save project

parent e8010d34
Showing with 7 additions and 5 deletions
def new_input():
total = []
while True:
unit= input("请输入:")
unit= input("请输入(q退出):")
if unit== 'q':
break
else:
......@@ -12,8 +12,8 @@ def new_input():
else:
total.append(unit)
finally:
print("==============")
return total
print("==============")
return total
def sum(money):
......@@ -24,4 +24,4 @@ def sum(money):
price=new-input()
pay=input(price)
print("您一共消费"+str(pay+"元!扫码还是微信")
\ No newline at end of file
# print("您一共消费"+str(pay+"元!扫码还是微信")
\ 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