🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](token.xhtml "token --- 与Python解析树一起使用的常量") | - [上一页](symtable.xhtml "symtable --- Access to the compiler's symbol tables") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - [Python 语言服务](language.xhtml) » - $('.inline-search').show(0); | # [`symbol`](#module-symbol "symbol: Constants representing internal nodes of the parse tree.") --- 与 Python 解析树一起使用的常量 **源代码:** [Lib/symbol.py](https://github.com/python/cpython/tree/3.7/Lib/symbol.py) \[https://github.com/python/cpython/tree/3.7/Lib/symbol.py\] - - - - - - 此模块提供用于表示解析树内部节点数值的常量。 与大多数 Python 不同,这些常量使用小写字符名称。 请参阅 Python 发行版中的 `Grammar/Grammar` 文件来获取该语言语法上下文中对这些名称的定义。 这些名称所映射的特定数字值可能会在 Python 版本之间更改。 此模块还提供了一个额外的数据对象: `symbol.``sym_name`将此模块中定义的常量的数值映射回名称字符串的字典,允许生成更加人类可读的解析树表示。 ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](token.xhtml "token --- 与Python解析树一起使用的常量") | - [上一页](symtable.xhtml "symtable --- Access to the compiler's symbol tables") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - [Python 语言服务](language.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。