Commit 9f1cc551 by BellCodeEditor

save project

parent ce869a5e
......@@ -15,7 +15,7 @@ def new_input():
print("=====================")
return total
# 创建函数sum放入参数money
def sum(money):
def sums(money):
# 设置变量count
count=0
# 遍历列表
......@@ -26,7 +26,7 @@ def sum(money):
return count
price = new_input()
# 调用函数sum并赋值给pay
pay=sum(price)
print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
# price = new_input()
# # 调用函数sum并赋值给pay
# pay=sum(price)
# print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
import func
dance=func.new_input()
scroce=func.new_input()
print(scroce)
\ 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