Commit d6312bdb by BellCodeEditor

save project

parent 871b4b5a
Showing with 28 additions and 0 deletions
def new_input():
total = []
if money=="q"
break
elif :
'''
try:异常处理
'''
try:
money = int(money)
except:
print("您输入的有误,请重新输入")
else:
total.append(money)
finally:
print("=="*15)
return total
return = new_input()
print(result)
def sun(money):
count count+id
for i in money:
count = count+i
return counr
print = new_input()
pay = sum(print)
print("您一共消费")
\ 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