Commit e224874e by BellCodeEditor

save project

parent b17ea356
Showing with 4 additions and 4 deletions
......@@ -5,7 +5,7 @@ def new_input():
if unif=="q":
break
try:
unif=int(tatol)
unif=int(unif)
except:
print("请再输入一个数")
else:
......@@ -16,13 +16,13 @@ def new_input():
result=new_input()
def sum(money):
def sum(score):
count=0
for i in money:
for i in score:
count=count+i
return count
price=new_input()
pay=sum(price)
print("您一共消费了"+str(pay)+"元! 扫码还是现金呢?")
print("您的总分是"+str(pay)+"分!恭喜您!")
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