Commit 8be8b549 by BellCodeEditor

save project

parent b803e284
Showing with 20 additions and 9 deletions
def er(): def new_input():
break total=[]
else:
total = []
while True: while True:
unit= input("请输入:") money=inout("请输入(q退出):")
if unit== 'q': if money=="q":
total.append(unit) break
print(total) else:
er() try:
money=int(money)
except:
print("请重新输入一个数字")
else:
total.append(money)
finally:
print("-"*30)
return total
resualt = new_input()
print(resualt)
\ 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