<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 附錄?A.?進一步閱讀 第?1?章?安裝 Python 第?2?章?第一個 Python 程序 * 2.3.?文檔化函數 * [PEP 257](http://www.python.org/peps/pep-0257.html) 定義了 `doc string` 規范。 * [_Python Style Guide_](http://www.python.org/doc/essays/styleguide.html) 討論了如何編寫一個好的 `doc string`。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了[在 `doc string` 中如何使用空白](http://www.python.org/doc/current/tut/node6.html#SECTION006750000000000000000)。 * 2.4.2.?何謂對象? * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 確切解釋了[在 Python 中萬物皆對象的含義](http://www.python.org/doc/current/ref/objects.html),因為有些書生氣十足的人,喜歡花時間討論這類的問題。 * [eff-bot](http://www.effbot.org/guides/) 總結了 [Python 對象](http://www.effbot.org/guides/python-objects.htm). * 2.5.?代碼縮進 * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 討論了交叉縮進問題,并且[演示了各種各樣的縮進錯誤](http://www.python.org/doc/current/ref/indentation.html)。 * [_Python Style Guide_](http://www.python.org/doc/essays/styleguide.html) 討論了良好的縮進風格。 * 2.6.?測試模塊 * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 討論了[導入模塊](http://www.python.org/doc/current/ref/import.html)的底層細節。 第?3?章?內置數據類型 * 3.1.3.?從 dictionary 中刪除元素 * [_How to Think Like a Computer Scientist_](http://www.ibiblio.org/obp/thinkCSpy/ "Python book for computer science majors") 講授了 dictionary 和如何[使用 dictionary 模擬稀疏矩陣](http://www.ibiblio.org/obp/thinkCSpy/chap10.htm)。 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 有許多[使用 dictionary 的示例代碼](http://www.faqts.com/knowledge-base/index.phtml/fid/541)。 * [Python Cookbook](http://www.activestate.com/ASPN/Python/Cookbook/ "growing archive of annotated code samples") 討論了[如何通過 key 對 dictionary 的值進行排序](http://www.activestate.com/ASPN/Python/Cookbook/Recipe/52306)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有的 dictionary 方法](http://www.python.org/doc/current/lib/typesmapping.html)。 * 3.2.5.?使用 list 的運算符 * [_How to Think Like a Computer Scientist_](http://www.ibiblio.org/obp/thinkCSpy/ "Python book for computer science majors") 講述了list,并且重點講述了如何[把 list 作為函數參數傳遞](http://www.ibiblio.org/obp/thinkCSpy/chap08.htm)。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 展示了如何[把 list 作為堆棧和隊列使用](http://www.python.org/doc/current/tut/node7.html#SECTION007110000000000000000)。 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 回答了[有關 list 的常見問題](http://www.faqts.com/knowledge-base/index.phtml/fid/534)并且有許多[使用 list 的示例代碼](http://www.faqts.com/knowledge-base/index.phtml/fid/540)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有的 list 方法](http://www.python.org/doc/current/lib/typesseq-mutable.html)。 * 3.3.?Tuple 介紹 * [_How to Think Like a Computer Scientist_](http://www.ibiblio.org/obp/thinkCSpy/ "Python book for computer science majors") 講解了 tuple 并且展示了如何[連接 tuple](http://www.ibiblio.org/obp/thinkCSpy/chap10.htm)。 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 展示了如何對[一個 tuple 排序](http://www.faqts.com/knowledge-base/view.phtml/aid/4553/fid/587)。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 展示了如何[定義一個只包含一個元素的 tuple](http://www.python.org/doc/current/tut/node7.html#SECTION007300000000000000000)。 * 3.4.2.?一次賦多值 * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 展示了[什么時候可以忽略續行符](http://www.python.org/doc/current/ref/implicit-joining.html)和[什么時候您需要使用續行符](http://www.python.org/doc/current/ref/explicit-joining.html)的例子。 * [_How to Think Like a Computer Scientist_](http://www.ibiblio.org/obp/thinkCSpy/ "Python book for computer science majors") 演示了如何使用多變量賦值來[交換兩個變量的值](http://www.ibiblio.org/obp/thinkCSpy/chap09.htm)。 * 3.5.?格式化字符串 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有字符串格式化所使用的格式符](http://www.python.org/doc/current/lib/typesseq-strings.html)。 * [_Effective AWK Programming_](http://www-gnats.gnu.org:8080/cgi-bin/info2www?(gawk)Top) 討論了[所有的格式符](http://www-gnats.gnu.org:8080/cgi-bin/info2www?(gawk)Control+Letters)和高級字符串格式化技術,如[指定寬度,精度和0填充](http://www-gnats.gnu.org:8080/cgi-bin/info2www?(gawk)Format+Modifiers)。 * 3.6.?映射 list * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了另一種方法來映射 list:[使用內置的 `map` 函數](http://www.python.org/doc/current/tut/node7.html#SECTION007130000000000000000)。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 展示了如何[對嵌套 list 的 list 進行解析](http://www.python.org/doc/current/tut/node7.html#SECTION007140000000000000000)。 * 3.7.?連接 list 與分割字符串 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 回答了[關于字符串的常見問題](http://www.faqts.com/knowledge-base/index.phtml/fid/480),并且有許多[使用字符串的例子代碼](http://www.faqts.com/knowledge-base/index.phtml/fid/539)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有字符串方法](http://www.python.org/doc/current/lib/string-methods.html)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`string` 模塊](http://www.python.org/doc/current/lib/module-string.html)的文檔。 * [_The Whole Python FAQ_](http://www.python.org/doc/FAQ.html) 解釋了[為什么 `join` 是字符串方法](http://www.python.org/cgi-bin/faqw.py?query=4.96&querytype=simple&casefold=yes&req=search)而不是 list 方法。 第?4?章?自省的威力 * 4.2.?使用可選參數和命名參數 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 確切地討論了[何時、如何進行缺省參數賦值](http://www.python.org/doc/current/tut/node6.html#SECTION006710000000000000000),這都和缺省值是一個 list 還是一個具有副作用的表達式有關。 * 4.3.3.?內置函數 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 對[所有的內置函數](http://www.python.org/doc/current/lib/built-in-funcs.html)和[所有的內置異常](http://www.python.org/doc/current/lib/module-exceptions.html)都進行了文檔化。 * 4.5.?過濾列表 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了[使用內置 `filter` 函數](http://www.python.org/doc/current/tut/node7.html#SECTION007130000000000000000)過濾列表的另一種方式。 * 4.6.1.?使用 and-or 技巧 * [Python Cookbook](http://www.activestate.com/ASPN/Python/Cookbook/ "growing archive of annotated code samples") 討論了[其它的 `and-or` 技巧](http://www.activestate.com/ASPN/Python/Cookbook/Recipe/52310)。 * 4.7.1.?真實世界中的 lambda 函數 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 討論了使用 `lambda` 來[間接調用函數](http://www.faqts.com/knowledge-base/view.phtml/aid/6081/fid/241)。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 演示了如何[從一個 `lambda` 函數內部訪問外部變量](http://www.python.org/doc/current/tut/node6.html#SECTION006740000000000000000)。([PEP 227](http://python.sourceforge.net/peps/pep-0227.html) 解釋了在 Python 的未來版本中將如何變化。) * [_The Whole Python FAQ_](http://www.python.org/doc/FAQ.html) 有關于[令人模糊的使用 `lambda` 單行語句](http://www.python.org/cgi-bin/faqw.py?query=4.15&querytype=simple&casefold=yes&req=search)的例子。 第?5?章?對象和面向對象 * 5.2.?使用 from module import 導入模塊 * [eff-bot](http://www.effbot.org/guides/) 有更多關于 [`import _module_` _vs._ `from _module_ import`](http://www.effbot.org/guides/import-confusion.htm) 的論述。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了高級的導入技術,包括 [`from _module_ import *`](http://www.python.org/doc/current/tut/node8.html#SECTION008410000000000000000)。 * 5.3.2.?了解何時去使用 self 和 __init__ * [_Learning to Program_](http://www.freenetpages.co.uk/hp/alan.gauld/ "Python book for first-time programmers") 有優雅的[類的介紹](http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm)。 * [_How to Think Like a Computer Scientist_](http://www.ibiblio.org/obp/thinkCSpy/ "Python book for computer science majors") 展示了如何[使用類來實現復合數據類型模型](http://www.ibiblio.org/obp/thinkCSpy/chap12.htm)。 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 深入考慮了[類、名字空間和繼承](http://www.python.org/doc/current/tut/node11.html)。 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 回答了[關于類的常見問題](http://www.faqts.com/knowledge-base/index.phtml/fid/242)。 * 5.4.1.?垃圾回收 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[像 `__class__` 之類的內置屬性](http://www.python.org/doc/current/lib/specialattrs.html)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`gc` 模塊的文檔](http://www.python.org/doc/current/lib/module-gc.html),此模塊給予你對 Python 的垃圾回收的底層控制權。 * 5.5.?探索 UserDict:一個封裝類 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`UserDict` 模塊](http://www.python.org/doc/current/lib/module-UserDict.html) 和 [`copy` 模塊](http://www.python.org/doc/current/lib/module-copy.html) 的文檔。 * 5.7.?高級專用類方法 * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 提供了[所有專用類方法](http://www.python.org/doc/current/ref/specialnames.html)的文檔。 * 5.9.?私有函數 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了[私有變量](http://www.python.org/doc/current/tut/node11.html#SECTION0011600000000000000000)的內部工作方式。 第?6?章?異常和文件處理 * 6.1.1.?為其他用途使用異常 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了異常,包括[定義和引發你自已的異常,以及一次處理多個異常](http://www.python.org/doc/current/tut/node10.html#SECTION0010400000000000000000)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有內置異常](http://www.python.org/doc/current/lib/module-exceptions.html)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [getpass](http://www.python.org/doc/current/lib/module-getpass.html) 模塊的文檔。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`traceback` 模塊](http://www.python.org/doc/current/lib/module-traceback.html) 的文檔,這個模塊在異常引發之后,提供了底層的對異常屬性的處理。 * [_Python Reference Manual_](http://www.python.org/doc/current/ref/) 討論了 [`try...except` 塊](http://www.python.org/doc/current/ref/try.html) 的內部工作方式。 * 6.2.4.?寫入文件 * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了文件的讀取和寫入,包括如何[將一個文件一次一行地讀到 list 中](http://www.python.org/doc/current/tut/node9.html#SECTION009210000000000000000)。 * [eff-bot](http://www.effbot.org/guides/) 討論了[各種各樣讀取文件方法](http://www.effbot.org/guides/readline-performance.htm) 的效率和性能。 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 回答了[關于文件的常見問題](http://www.faqts.com/knowledge-base/index.phtml/fid/552)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了[所有文件對象模塊](http://www.python.org/doc/current/lib/bltin-file-objects.html)。 * 6.4.?使用 sys.modules * [_Python Tutorial_](http://www.python.org/doc/current/tut/tut.html) 討論了[缺省參數到底在什么時候和是如何計算的](http://www.python.org/doc/current/tut/node6.html#SECTION006710000000000000000)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`sys`](http://www.python.org/doc/current/lib/module-sys.html) 模塊的文檔。 * 6.5.?與目錄共事 * [Python Knowledge Base](http://www.faqts.com/knowledge-base/index.phtml/fid/199/) 回答了[關于 `os` 模塊的問題](http://www.faqts.com/knowledge-base/index.phtml/fid/240)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 提供了 [`os`](http://www.python.org/doc/current/lib/module-os.html) 模塊和 [`os.path`](http://www.python.org/doc/current/lib/module-os.path.html) 模塊的文檔。 第?7?章?正則表達式 * 7.6.?個案研究:解析電話號碼 * [Regular Expression HOWTO](http://py-howto.sourceforge.net/regex/regex.html) 講解正則表達式和如何在 Python 中使用正則表達式。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 概述了 [`re` module](http://www.python.org/doc/current/lib/module-re.html)。 第?8?章?HTML 處理 * 8.4.?BaseHTMLProcessor.py 介紹 * [W3C](http://www.w3.org/) 討論了[字符和實體引用](http://www.w3.org/TR/REC-html40/charset.html#entities)。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 解答了您的懷疑,即 [`htmlentitydefs` 模塊](http://www.python.org/doc/current/lib/module-htmlentitydefs.html)的確名符其實。 * 8.9.?全部放在一起 * 您可能會認為我的服務端腳本編程的想法是開玩笑。在我發現這個[基于 web 的方言轉換器](http://rinkworks.com/dialect/)之前,的確是這樣想的。不幸的是,看不到它的源代碼。 第?9?章?XML 處理 * 9.4.?Unicode * [Unicode.org](http://www.unicode.org/) 是 unicode 標準的主頁,包含了一個簡要的[技術簡介](http://www.unicode.org/standard/principles.html)。 * [Unicode 教程](http://www.reportlab.com/i18n/python_unicode_tutorial.html)有更多關于如何使用 Python unicode 函數的例子,包括甚至在并不真的需要時如何將 unicode 強制轉換為 ASCII。 * [PEP 263](http://www.python.org/peps/pep-0263.html) 涉及了何時、如何在你的`.py`文件中定義字符編碼的更多細節。 第?10?章?腳本和流 第?11?章?HTTP Web 服務 * 11.1.?概覽 * Paul Prescod 認為[純 HTTP web 服務是 Internet 的未來](http://webservices.xml.com/pub/a/ws/2002/02/06/rest.html)。 第?12?章?SOAP Web 服務 * 12.1.?概覽 * [http://www.xmethods.net/](http://www.xmethods.net/) 是一個訪問 SOAP web 服務的公共知識庫。 * [SOAP 規范](http://www.w3.org/TR/soap/)相當可讀,如果你喜歡這類東西的話。 * 12.8.? SOAP 網絡服務故障排除 * [New developments for SOAPpy](http://www-106.ibm.com/developerworks/webservices/library/ws-pyth17.html) 一步步連接到另一個不名副其實的 SOAP 服務。 第?13?章?單元測試 * 13.1.?羅馬數字程序介紹 II * [這個站點](http://www.wilkiecollins.demon.co.uk/roman/front.htm) 有關于羅馬數字更多的內容,包括羅馬人如何使用羅馬數字的迷人 [歷史](http://www.wilkiecollins.demon.co.uk/roman/intro.htm) (簡言之:充滿偶然性和反復無常)。 * 13.3.?romantest.py 介紹 * [PyUnit 主頁](http://pyunit.sourceforge.net/) 對于使用 [`unittest` 框架](http://pyunit.sourceforge.net/pyunit.html) 以及本章沒能涵蓋的高級特性有深入的討論。 * [PyUnit FAQ](http://pyunit.sourceforge.net/pyunit.html) 解釋了 [為什么測試用例要和被測試代碼分開存放](http://pyunit.sourceforge.net/pyunit.html#WHERE) 。 * [_Python Library Reference_](http://www.python.org/doc/current/lib/) 總結了 [`unittest`](http://www.python.org/doc/current/lib/module-unittest.html) 模塊。 * [ExtremeProgramming.org](http://www.extremeprogramming.org/) 討論 [你為什么需要編寫單元測試](http://www.extremeprogramming.org/rules/unittests.html)。 * [The Portland Pattern Repository](http://www.c2.com/cgi/wiki) 有一個持續的 [單元測試](http://www.c2.com/cgi/wiki?UnitTests) 討論,包括了一個 [標準的定義](http://www.c2.com/cgi/wiki?StandardDefinitionOfUnitTest),為什么你需要 [首先開發單元測試代碼](http://www.c2.com/cgi/wiki?CodeUnitTestFirst) 以及另外一些深層次 [案例](http://www.c2.com/cgi/wiki?UnitTestTrial)。 第?14?章?測試優先編程 第?15?章?重構 * 15.5.?小結 * [XProgramming.com](http://www.xprogramming.com/) 有多種語言的 [單元測試框架](http://www.xprogramming.com/software.htm) 的下載鏈接。 第?16?章?函數編程 第?17?章?動態函數 * 17.7.?plural.py, 第 6 階段 * [PEP 255](http://www.python.org/peps/pep-0255.html) 定義生成器。 * [Python Cookbook](http://www.activestate.com/ASPN/Python/Cookbook/ "growing archive of annotated code samples") 有[生成器的例子](http://www.google.com/search?q=generators+cookbook+site:aspn.activestate.com)。 第?18?章?性能優化 * 18.1.?概覽 * [Soundexing and Genealogy](http://www.avotaynu.com/soundex.html) 給出了 Soundex 發展的年代表以及地域變化。
                  <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>

                              哎呀哎呀视频在线观看