Commit 2bc633c9 by BellCodeEditor

save project

parent 1416eb1c
Showing with 5 additions and 0 deletions
...@@ -2,6 +2,11 @@ def new_input(): ...@@ -2,6 +2,11 @@ def new_input():
turtle = [] turtle = []
while True: while True:
price = input("请输入价格:") price = input("请输入价格:")
try:
int(price)
except:
print()
else:
if price == 'q': if price == 'q':
break break
else: else:
......
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