题解 | #取号#

取号

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

全部评论

相关推荐

qz鹿:*** 祝他毕业就失业
点赞 评论 收藏
分享
牛客101244697号:这个衣服和发型不去投偶像练习生?
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务