UnboundLocalError: local variable 'False_thread' referenced before assignment
时间: 2024-02-18 15:56:59 浏览: 39
python UnboundLocalError: local variable ‘x’ referenced before assignment
```python
def test_scope():
print(False_thread) # 此处会报错:UnboundLocalError: local variable 'False_thread' referenced before assignment
False_thread = False
test_scope()
```
阅读全文