出现UnboundLocalError: local variable 'a' referenced before assignment异常的情况与解决方法

NoSuchKey