judge_respond_structure.py 186 B

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