#Scope
共 3 篇文章
解决 Python 报错 UnboundLocalError local variable 作用域异常
分析 Python 函数在赋值前引用局部变量触发 UnboundLocalError 的作用域解析根因,提供 global 与 nonlocal 解决方案。
解决 Python 报错 NameError: name '...' is not defined 的排查指南
排查与解决 Python 运行时访问未声明变量提示 NameError: name is not defined 的完整方案。
解决 Rust 编译报错 cannot find value in this scope 的排查指南
排查与解决 Rust 编译器变量作用域检查提示 cannot find value in this scope E0425 的完整方案。


