Commit d03b1f35 by BellCodeEditor

save project

parent 65d922bf
Showing with 6 additions and 4 deletions
def new_input():
a=[]
while True:
b=(input('请输入价格:(退出请按q)'))
if b=='q':
break
else:
try:
b=int(input('请输入:(退出请按q)'))
b=int(b)
except:
print('请输入整数!')
else:
print('-'*30)
if b=='q':
break
a.append(b)
print('-'*30)
print(a)
new_input()
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