解决Python报错:local variable 'a' referenced before assignment

NoSuchKey