# def a(): # total = [] # while True: # unit= input("请输入:") # if unit== 'q': # break # else: # total.append(unit) # print(total) # a()
try: a=int(input("请输入数字:")) except: print("请输入一个数字哦~") else: if a<18: print("未成年不许喝酒哦")