Commit aec5a58e by BellCodeEditor

auto save

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