<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](stdtypes.xhtml "內置類型") | - [上一頁](functions.xhtml "內置函數") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - $('.inline-search').show(0); | # 內置常量 有少數的常量存在于內置命名空間中。 它們是: `False`[`bool`](functions.xhtml#bool "bool") 類型的假值。 給 `False` 賦值是非法的并會引發 [`SyntaxError`](exceptions.xhtml#SyntaxError "SyntaxError")。 `True`[`bool`](functions.xhtml#bool "bool") 類型的真值。 給 `True` 賦值是非法的并會引發 [`SyntaxError`](exceptions.xhtml#SyntaxError "SyntaxError")。 `None``NoneType` 類型的唯一值。 `None` 經常用于表示缺少值,當因為默認參數未傳遞給函數時。 給 `None` 賦值是非法的并會引發 [`SyntaxError`](exceptions.xhtml#SyntaxError "SyntaxError")。 `NotImplemented`二進制特殊方法應返回的特殊值(例如,[`__eq__()`](../reference/datamodel.xhtml#object.__eq__ "object.__eq__")、[`__lt__()`](../reference/datamodel.xhtml#object.__lt__ "object.__lt__")、`__add __()`、[`__rsub__()`](../reference/datamodel.xhtml#object.__rsub__ "object.__rsub__") 等)表示操作沒有針對其他類型實現;為了相同的目的,可以通過就地二進制特殊方法(例如,`__imul __()`、`__ rightnd__()` 等)返回。 它的邏輯值為真。 注解 當二進制(或就地)方法返回``NotImplemented``時,解釋器將嘗試對另一種類型(或其他一些回滾操作,取決于運算符)的反射操作。 如果所有嘗試都返回``NotImplemented``,則解釋器將引發適當的異常。 錯誤返回的``NotImplemented``將導致誤導性錯誤消息或返回到Python代碼中的``NotImplemented``值。 參見 [Implementing the arithmetic operations](numbers.xhtml#implementing-the-arithmetic-operations) 為例。 注解 `NotImplementedError` 和 `NotImplemented` 不可互換,即使它們有相似的名稱和用途。 有關何時使用它的詳細信息,請參閱 [`NotImplementedError`](exceptions.xhtml#NotImplementedError "NotImplementedError")。 `Ellipsis`與省略號文字字面 “`...`” 相同。 特殊值主要與用戶定義的容器數據類型的擴展切片語法結合使用。 `__debug__`如果 Python 沒有以 [`-O`](../using/cmdline.xhtml#cmdoption-o) 選項啟動,則此常量為真值。 另請參見 [`assert`](../reference/simple_stmts.xhtml#assert) 語句。 注解 變量名 [`None`](#None "None"),[`False`](#False "False"),[`True`](#True "True") 和 `__ debug__` 無法重新賦值(賦值給它們,即使是屬性名,將引發 [`SyntaxError`](exceptions.xhtml#SyntaxError "SyntaxError") ),所以它們可以被認為是“真正的”常數。 ## 由 [`site`](site.xhtml#module-site "site: Module responsible for site-specific configuration.") 模塊添加的常量 [`site`](site.xhtml#module-site "site: Module responsible for site-specific configuration.") 模塊(在啟動期間自動導入,除非給出 [`-S`](../using/cmdline.xhtml#id3) 命令行選項)將幾個常量添加到內置命名空間。 它們對交互式解釋器 shell 很有用,并且不應在程序中使用。 `quit`(*code=None*)`exit`(*code=None*)當打印此對象時,會打印出一條消息,例如“Use quit() or Ctrl-D (i.e. EOF) to exit”,當調用此對象時,將使用指定的退出代碼來引發 [`SystemExit`](exceptions.xhtml#SystemExit "SystemExit")。 `copyright``credits`打印或調用的對象分別打印版權或作者的文本。 `license`當打印此對象時,會打印出一條消息“Type license() to see the full license text”,當調用此對象時,將以分頁形式顯示完整的許可證文本(每次顯示一屏)。 ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](stdtypes.xhtml "內置類型") | - [上一頁](functions.xhtml "內置函數") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.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>

                              哎呀哎呀视频在线观看