题解 | #取号#
取号
http://www.nowcoder.com/practice/2a61684ea405441eb9e572705defebdc
while 1: print("Welcome! How many people, please?\nEnter 'quit' to end the program.") x=input() if x =='quit': break y=int(x) if y not in range(1,21): continue if y <=4: print('Your small table is reserved!') elif 4<y<=6: print( 'Your middle table is reserved!') elif 6<y<=10: print('Your large table is reserved!') else: print( 'Sorry, there is no free table that seats over ten persons.') continue