解决python中报错:local variable 'xxx' referenced before assignment

NoSuchKey