<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](keyword.xhtml "keyword --- 檢驗Python關鍵字") | - [上一頁](symbol.xhtml "symbol --- 與 Python 解析樹一起使用的常量") | - ![](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); | # [`token`](#module-token "token: Constants representing terminal nodes of the parse tree.") --- 與Python解析樹一起使用的常量 **源碼:** [Lib/token.py](https://github.com/python/cpython/tree/3.7/Lib/token.py) \[https://github.com/python/cpython/tree/3.7/Lib/token.py\] - - - - - - 此模塊提供表示解析樹(終端令牌)的葉節點的數值的常量。 請參閱 Python 發行版中的文件 `Grammar/Grammar` ,以獲取語言語法上下文中名稱的定義。 名稱映射到的特定數值可能會在 Python 版本之間更改。 該模塊還提供從數字代碼到名稱和一些函數的映射。 這些函數鏡像了 Python C 頭文件中的定義。 `token.``tok_name`將此模塊中定義的常量的數值映射回名稱字符串的字典,允許生成更加人類可讀的解析樹表示。 `token.``ISTERMINAL`(*x*)對終端標記值返回 true 。 `token.``ISNONTERMINAL`(*x*)對非終端標記值返回true。 `token.``ISEOF`(*x*)如果 *x* 是表示輸入結束的標記,則返回true。 標記常量是: `token.``ENDMARKER``token.``NAME``token.``NUMBER``token.``STRING``token.``NEWLINE``token.``INDENT``token.``DEDENT``token.``LPAR``token.``RPAR``token.``LSQB``token.``RSQB``token.``COLON``token.``COMMA``token.``SEMI``token.``PLUS``token.``MINUS``token.``STAR``token.``SLASH``token.``VBAR``token.``AMPER``token.``LESS``token.``GREATER``token.``EQUAL``token.``DOT``token.``PERCENT``token.``LBRACE``token.``RBRACE``token.``EQEQUAL``token.``NOTEQUAL``token.``LESSEQUAL``token.``GREATEREQUAL``token.``TILDE``token.``CIRCUMFLEX``token.``LEFTSHIFT``token.``RIGHTSHIFT``token.``DOUBLESTAR``token.``PLUSEQUAL``token.``MINEQUAL``token.``STAREQUAL``token.``SLASHEQUAL``token.``PERCENTEQUAL``token.``AMPEREQUAL``token.``VBAREQUAL``token.``CIRCUMFLEXEQUAL``token.``LEFTSHIFTEQUAL``token.``RIGHTSHIFTEQUAL``token.``DOUBLESTAREQUAL``token.``DOUBLESLASH``token.``DOUBLESLASHEQUAL``token.``AT``token.``ATEQUAL``token.``RARROW``token.``ELLIPSIS``token.``OP``token.``ERRORTOKEN``token.``N_TOKENS``token.``NT_OFFSET`C 標記生成器不使用以下標記類型值,但 [`tokenize`](tokenize.xhtml#module-tokenize "tokenize: Lexical scanner for Python source code.") 模塊需要這些標記類型值。 `token.``COMMENT`標記值用于表示注釋。 `token.``NL`標記值用于表示非終止換行符。 [`NEWLINE`](#token.NEWLINE "token.NEWLINE") 標記表示 Python 代碼邏輯行的結束;當在多條物理線路上繼續執行邏輯代碼行時,會生成 `NL` 標記。 `token.``ENCODING`指示用于將源字節解碼為文本的編碼的標記值。 [`tokenize.tokenize()`](tokenize.xhtml#tokenize.tokenize "tokenize.tokenize") 返回的第一個標記將始終是一個 `ENCODING` 標記。 在 3.5 版更改: 補充 `AWAIT` 和 `ASYNC` 標記。 在 3.7 版更改: 補充 [`COMMENT`](#token.COMMENT "token.COMMENT") 、 [`NL`](#token.NL "token.NL") 和 [`ENCODING`](#token.ENCODING "token.ENCODING") 標記。 在 3.7 版更改: 移除 `AWAIT` 和 `ASYNC` 標記。 "async" 和 "await" 現在被標記為 [`NAME`](#token.NAME "token.NAME") 標記。 ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](keyword.xhtml "keyword --- 檢驗Python關鍵字") | - [上一頁](symbol.xhtml "symbol --- 與 Python 解析樹一起使用的常量") | - ![](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 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看