Commit 63250668 by BellCodeEditor

save project

parent 9bae71d1
Showing with 11 additions and 3 deletions
......@@ -13,5 +13,13 @@ def new_input():
finally:
print("-"*147)
return total
result=new_input()
print(result)
\ No newline at end of file
def sum(b):
sum1=0
for i in b:
sum1+=i
return sum1
c=new_input()
d=sum(c)
print("您总共消费"+str(d)+"元,是要扫码还是现金还是刷卡?")
\ 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