Commit 13091321 by BellCodeEditor

save project

parent 0871ce52
Showing with 17 additions and 20 deletions
def store():
total = []
while True:
money = input("请输入(q退出):")
if money == 'q'
break
else:
try:
money = int(money)
except:
print("重新输入")
else:
total.append(money)
print("滚"*30)
return total
return = store()
print(result)
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