错误1:”UnboundLocalError: local variable '****'referenced before assignment“ 解决: 1)在函数中调用了全局变量,在变量使用前 先声明 global ****。