1. UnboundLocalError: local variable ‘classes_taken’ referenced before assignment
  2. hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
  3. How to correct TypeError: Unicode-objects must be encoded before hashing?
  4. Why am I seeing “TypeError: string indices must be integers”?
  5. string indices must be integers --GP调用执行Python时报错
  6. Python Error:TypeError: string indices must be integers, not str
    这个情况出现的原因
  7. TemplateSyntaxError: expected token ‘:’, got ‘}’