UnboundLocalError: local variable ‘XXX‘ referenced before assignment解决办法

NoSuchKey