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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](typing.xhtml "typing --- 類型標注支持") | - [上一頁](othergui.xhtml "其他圖形用戶界面(GUI)包") | - ![](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); | # 開發工具 本章中描述的各模塊可幫你編寫 Python 程序。例如,[`pydoc`](pydoc.xhtml#module-pydoc "pydoc: Documentation generator and online help system.") 模塊接受一個模塊并根據該模塊的內容來生成文檔。[`doctest`](doctest.xhtml#module-doctest "doctest: Test pieces of code within docstrings.") 和 [`unittest`](unittest.xhtml#module-unittest "unittest: Unit testing framework for Python.") 這兩個模塊包含了用于編寫單元測試的框架,并可用于自動測試所編寫的代碼,驗證預期的輸出是否產生。**2to3** 程序能夠將 Python 2.x 源代碼翻譯成有效的 Python 3.x 源代碼。 本章中描述的模塊列表是: - [`typing` --- 類型標注支持](typing.xhtml) - [類型別名](typing.xhtml#type-aliases) - [NewType](typing.xhtml#newtype) - [Callable](typing.xhtml#callable) - [泛型(Generic)](typing.xhtml#generics) - [用戶定義的泛型類型](typing.xhtml#user-defined-generic-types) - [`Any` 類型](typing.xhtml#the-any-type) - [類,函數和修飾器.](typing.xhtml#classes-functions-and-decorators) - [`pydoc` --- Documentation generator and online help system](pydoc.xhtml) - [`doctest` --- Test interactive Python examples](doctest.xhtml) - [Simple Usage: Checking Examples in Docstrings](doctest.xhtml#simple-usage-checking-examples-in-docstrings) - [Simple Usage: Checking Examples in a Text File](doctest.xhtml#simple-usage-checking-examples-in-a-text-file) - [How It Works](doctest.xhtml#how-it-works) - [Which Docstrings Are Examined?](doctest.xhtml#which-docstrings-are-examined) - [How are Docstring Examples Recognized?](doctest.xhtml#how-are-docstring-examples-recognized) - [What's the Execution Context?](doctest.xhtml#what-s-the-execution-context) - [What About Exceptions?](doctest.xhtml#what-about-exceptions) - [Option Flags](doctest.xhtml#option-flags) - [Directives](doctest.xhtml#directives) - [警告](doctest.xhtml#warnings) - [Basic API](doctest.xhtml#basic-api) - [Unittest API](doctest.xhtml#unittest-api) - [Advanced API](doctest.xhtml#advanced-api) - [DocTest Objects](doctest.xhtml#doctest-objects) - [Example Objects](doctest.xhtml#example-objects) - [DocTestFinder objects](doctest.xhtml#doctestfinder-objects) - [DocTestParser objects](doctest.xhtml#doctestparser-objects) - [DocTestRunner objects](doctest.xhtml#doctestrunner-objects) - [OutputChecker objects](doctest.xhtml#outputchecker-objects) - [調試](doctest.xhtml#debugging) - [Soapbox](doctest.xhtml#soapbox) - [`unittest` --- 單元測試框架](unittest.xhtml) - [基本實例](unittest.xhtml#basic-example) - [命令行界面](unittest.xhtml#command-line-interface) - [命令行選項](unittest.xhtml#command-line-options) - [探索性測試](unittest.xhtml#test-discovery) - [組織你的測試代碼](unittest.xhtml#organizing-test-code) - [復用已有的測試代碼](unittest.xhtml#re-using-old-test-code) - [Skipping tests and expected failures](unittest.xhtml#skipping-tests-and-expected-failures) - [Distinguishing test iterations using subtests](unittest.xhtml#distinguishing-test-iterations-using-subtests) - [Classes and functions](unittest.xhtml#classes-and-functions) - [Test cases](unittest.xhtml#test-cases) - [Deprecated aliases](unittest.xhtml#deprecated-aliases) - [Grouping tests](unittest.xhtml#grouping-tests) - [Loading and running tests](unittest.xhtml#loading-and-running-tests) - [load\_tests Protocol](unittest.xhtml#load-tests-protocol) - [Class and Module Fixtures](unittest.xhtml#class-and-module-fixtures) - [setUpClass and tearDownClass](unittest.xhtml#setupclass-and-teardownclass) - [setUpModule and tearDownModule](unittest.xhtml#setupmodule-and-teardownmodule) - [Signal Handling](unittest.xhtml#signal-handling) - [`unittest.mock` --- mock object library](unittest.mock.xhtml) - [Quick Guide](unittest.mock.xhtml#quick-guide) - [The Mock Class](unittest.mock.xhtml#the-mock-class) - [Calling](unittest.mock.xhtml#calling) - [Deleting Attributes](unittest.mock.xhtml#deleting-attributes) - [Mock names and the name attribute](unittest.mock.xhtml#mock-names-and-the-name-attribute) - [Attaching Mocks as Attributes](unittest.mock.xhtml#attaching-mocks-as-attributes) - [The patchers](unittest.mock.xhtml#the-patchers) - [patch](unittest.mock.xhtml#patch) - [patch.object](unittest.mock.xhtml#patch-object) - [patch.dict](unittest.mock.xhtml#patch-dict) - [patch.multiple](unittest.mock.xhtml#patch-multiple) - [patch methods: start and stop](unittest.mock.xhtml#patch-methods-start-and-stop) - [patch builtins](unittest.mock.xhtml#patch-builtins) - [TEST\_PREFIX](unittest.mock.xhtml#test-prefix) - [Nesting Patch Decorators](unittest.mock.xhtml#nesting-patch-decorators) - [Where to patch](unittest.mock.xhtml#where-to-patch) - [Patching Descriptors and Proxy Objects](unittest.mock.xhtml#patching-descriptors-and-proxy-objects) - [MagicMock and magic method support](unittest.mock.xhtml#magicmock-and-magic-method-support) - [Mocking Magic Methods](unittest.mock.xhtml#mocking-magic-methods) - [Magic Mock](unittest.mock.xhtml#magic-mock) - [Helpers](unittest.mock.xhtml#helpers) - [sentinel](unittest.mock.xhtml#sentinel) - [DEFAULT](unittest.mock.xhtml#default) - [call](unittest.mock.xhtml#call) - [create\_autospec](unittest.mock.xhtml#create-autospec) - [ANY](unittest.mock.xhtml#any) - [FILTER\_DIR](unittest.mock.xhtml#filter-dir) - [mock\_open](unittest.mock.xhtml#mock-open) - [Autospeccing](unittest.mock.xhtml#autospeccing) - [Sealing mocks](unittest.mock.xhtml#sealing-mocks) - [`unittest.mock` 上手指南](unittest.mock-examples.xhtml) - [使用 mock](unittest.mock-examples.xhtml#using-mock) - [模擬方法調用](unittest.mock-examples.xhtml#mock-patching-methods) - [對象上的方法調用的 mock](unittest.mock-examples.xhtml#mock-for-method-calls-on-an-object) - [Mocking Classes](unittest.mock-examples.xhtml#mocking-classes) - [Naming your mocks](unittest.mock-examples.xhtml#naming-your-mocks) - [Tracking all Calls](unittest.mock-examples.xhtml#tracking-all-calls) - [Setting Return Values and Attributes](unittest.mock-examples.xhtml#setting-return-values-and-attributes) - [Raising exceptions with mocks](unittest.mock-examples.xhtml#raising-exceptions-with-mocks) - [Side effect functions and iterables](unittest.mock-examples.xhtml#side-effect-functions-and-iterables) - [Creating a Mock from an Existing Object](unittest.mock-examples.xhtml#creating-a-mock-from-an-existing-object) - [Patch Decorators](unittest.mock-examples.xhtml#patch-decorators) - [Further Examples](unittest.mock-examples.xhtml#further-examples) - [Mocking chained calls](unittest.mock-examples.xhtml#mocking-chained-calls) - [Partial mocking](unittest.mock-examples.xhtml#partial-mocking) - [Mocking a Generator Method](unittest.mock-examples.xhtml#mocking-a-generator-method) - [Applying the same patch to every test method](unittest.mock-examples.xhtml#applying-the-same-patch-to-every-test-method) - [Mocking Unbound Methods](unittest.mock-examples.xhtml#mocking-unbound-methods) - [Checking multiple calls with mock](unittest.mock-examples.xhtml#checking-multiple-calls-with-mock) - [Coping with mutable arguments](unittest.mock-examples.xhtml#coping-with-mutable-arguments) - [Nesting Patches](unittest.mock-examples.xhtml#nesting-patches) - [Mocking a dictionary with MagicMock](unittest.mock-examples.xhtml#mocking-a-dictionary-with-magicmock) - [Mock subclasses and their attributes](unittest.mock-examples.xhtml#mock-subclasses-and-their-attributes) - [Mocking imports with patch.dict](unittest.mock-examples.xhtml#mocking-imports-with-patch-dict) - [Tracking order of calls and less verbose call assertions](unittest.mock-examples.xhtml#tracking-order-of-calls-and-less-verbose-call-assertions) - [More complex argument matching](unittest.mock-examples.xhtml#more-complex-argument-matching) - [2to3 - 自動將 Python 2 代碼轉為 Python 3 代碼](2to3.xhtml) - [使用 2to3](2to3.xhtml#using-2to3) - [修復器](2to3.xhtml#fixers) - [`lib2to3` —— 2to3 支持庫](2to3.xhtml#module-lib2to3) - [`test` --- Regression tests package for Python](test.xhtml) - [Writing Unit Tests for the `test` package](test.xhtml#writing-unit-tests-for-the-test-package) - [Running tests using the command-line interface](test.xhtml#running-tests-using-the-command-line-interface) - [`test.support` --- Utilities for the Python test suite](test.xhtml#module-test.support) - [`test.support.script_helper` --- Utilities for the Python execution tests](test.xhtml#module-test.support.script_helper) 另請參看 Python 開發模式: [`-X`](../using/cmdline.xhtml#id5)`dev` 選項以及 [`PYTHONDEVMODE`](../using/cmdline.xhtml#envvar-PYTHONDEVMODE) 環境變量。 ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](typing.xhtml "typing --- 類型標注支持") | - [上一頁](othergui.xhtml "其他圖形用戶界面(GUI)包") | - ![](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>

                              哎呀哎呀视频在线观看