Commit b5ba7542 by BellCodeEditor

save project

parent 76f5050f
Showing with 16 additions and 8 deletions
def new_input: def new_input():
turtle=1 total=[]
while Ture: while True:
if will = 'a' money=input("请输入(q退出)")
if money = 'q'
break break
else: else:
try: try:
new_input() money=int(money)
except except
print("请输录") print("请重新输入一个数字")
else: else:
turtlea.append() total.append(money)
finally:
print("-"*38)
return total
result = new_input()
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