Commit 8be8b549 by BellCodeEditor

save project

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