Commit aec5a58e by BellCodeEditor

auto save

parent c73b4f7c
Showing with 15 additions and 7 deletions
def jiage(): def jiage():
total = [] total = []
while True: while True:
unit= input("str") money = input("请输入(Q退出)")
if unit== 'q': if money== 'q':
break1 break
else: else:
total.append() try:
print(total) money=int(money)
jiage() except:
\ No newline at end of file print("请重新输入")
else:
total.append(money)
finally:
print("-"*30)
return total
result=jiage()
print(result)
\ 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