Commit a0cf801b by BellCodeEditor

save project

parent 72f4827e
Showing with 4 additions and 3 deletions
......@@ -15,9 +15,9 @@ def new_input():
print("=====================")
return total
# 创建函数sum放入参数money
def sum(money):
# 设置变量count
count=0
# 遍历列表
# 计算总价
......@@ -28,5 +28,5 @@ def new_input():
price = new_input()
# 调用函数sum并赋值给pay
pay=sum(price)
print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
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