13 lines
246 B
Markdown
13 lines
246 B
Markdown
|
---
|
|||
|
title: The Python Scopes
|
|||
|
localeTitle: Python范围
|
|||
|
---
|
|||
|
**TODO:注意**
|
|||
|
|
|||
|
* 这属于代码块和缩进信息附近。
|
|||
|
* 这也与变量有关,因为名称查找和绑定与范围有关。
|
|||
|
|
|||
|
**TODO:内容**
|
|||
|
|
|||
|
* `global`
|
|||
|
* `nonlocal`
|