# 05 · legb-and-global **演示**:LEGB 查找顺序、`global` 修改模块变量、局部同名变量屏蔽外层。 **运行**: ```sh uv run python examples/07-names-scope-imports/05-legb-and-global/legb_and_global.py ``` **预期输出**(3.12.9): ```text bump: 1 read_outer: 10 local_shadow: 99 ``` **依赖**:仅标准库。 **注意**:`local_shadow` 里的 `count = value` 让 `count` 成为局部变量,模块级 `count` 不受影响。