def judge_respond_triple_structure(respond): if respond[0] == '(' and respond[len(respond)-1] == ')' and respond.count(',') == 2: return True else: return False