Commit eec34213 by BellCodeEditor

auto save

parent 30037796
Showing with 4 additions and 11 deletions
...@@ -5,7 +5,8 @@ def day(): ...@@ -5,7 +5,8 @@ def day():
if unilt=="q": if unilt=="q":
break break
else: else:
try: try:30
unilt=int(unilt) unilt=int(unilt)
except: except:
print("输整数") print("输整数")
......
...@@ -14,15 +14,7 @@ def new_input(): ...@@ -14,15 +14,7 @@ def new_input():
finally: finally:
print("-"*30) print("-"*30)
return total return total
result=new_input()
print(result)
def sum(money):
count=0
for i in money:
count=count+i
return count
price=new_input()
pay=sum(price)
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