Commit 2bc633c9 by BellCodeEditor

save project

parent 1416eb1c
Showing with 10 additions and 5 deletions
......@@ -2,8 +2,13 @@ def new_input():
turtle = []
while True:
price = input("请输入价格:")
if price == 'q':
break
try:
int(price)
except:
print()
else:
turtle.append(price)
print(turtle)
\ No newline at end of file
if price == 'q':
break
else:
turtle.append(price)
print(turtle)
\ 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