while True: try: str_list = input().split() # print(str_list) key = [('reset','board'),('board','add'),('board','delete'), ('reboot','backplane'),('backplane','abort')] value = ['board fault','where to add','no board at all', 'impossible','install first'] c = [] d = [] #输入空 if len(str_list) < 1: ...