# 附錄?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 發展的年代表以及地域變化。
- 版權信息
- 第?1?章?安裝 Python
- 1.1.?哪一種 Python 適合您?
- 1.2.?Windows 上的 Python
- 1.3.?Mac OS X 上的 Python
- 1.4.?Mac OS 9 上的 Python
- 1.5.?RedHat Linux 上的 Python
- 1.6.?Debian GNU/Linux 上的 Python
- 1.7.?從源代碼安裝 Python
- 1.8.?使用 Python 的交互 Shell
- 1.9.?小結
- 第?2?章?第一個 Python 程序
- 2.1.?概覽
- 2.2.?函數聲明
- 2.3.?文檔化函數
- 2.4.?萬物皆對象
- 2.5.?代碼縮進
- 2.6.?測試模塊
- 第?3?章?內置數據類型
- 3.1.?Dictionary 介紹
- 3.2.?List 介紹
- 3.3.?Tuple 介紹
- 3.4.?變量聲明
- 3.5.?格式化字符串
- 3.6.?映射 list
- 3.7.?連接 list 與分割字符串
- 3.8.?小結
- 第?4?章?自省的威力
- 4.1.?概覽
- 4.2.?使用可選參數和命名參數
- 4.3.?使用 type、str、dir 和其它內置函數
- 4.4.?通過 getattr 獲取對象引用
- 4.5.?過濾列表
- 4.6.?and 和 or 的特殊性質
- 4.7.?使用 lambda 函數
- 4.8.?全部放在一起
- 4.9.?小結
- 第?5?章?對象和面向對象
- 5.1.?概覽
- 5.2.?使用 from _module_ import 導入模塊
- 5.3.?類的定義
- 5.4.?類的實例化
- 5.5.?探索 UserDict:一個封裝類
- 5.6.?專用類方法
- 5.7.?高級專用類方法
- 5.8.?類屬性介紹
- 5.9.?私有函數
- 5.10.?小結
- 第?6?章?異常和文件處理
- 6.1.?異常處理
- 6.2.?與文件對象共事
- 6.3.?for 循環
- 6.4.?使用 `sys.modules`
- 6.5.?與目錄共事
- 6.6.?全部放在一起
- 6.7.?小結
- 第?7?章?正則表達式
- 7.1.?概覽
- 7.2.?個案研究:街道地址
- 7.3.?個案研究:羅馬字母
- 7.4.?使用 {n,m} 語法
- 7.5.?松散正則表達式
- 7.6.?個案研究:解析電話號碼
- 7.7.?小結
- 第?8?章?HTML 處理
- 8.1.?概覽
- 8.2.?sgmllib.py 介紹
- 8.3.?從 HTML 文檔中提取數據
- 8.4.?BaseHTMLProcessor.py 介紹
- 8.5.?locals 和 globals
- 8.6.?基于 dictionary 的字符串格式化
- 8.7.?給屬性值加引號
- 8.8.?dialect.py 介紹
- 8.9.?全部放在一起
- 8.10.?小結
- 第?9?章?XML 處理
- 9.1.?概覽
- 9.2.?包
- 9.3.?XML 解析
- 9.4.?Unicode
- 9.5.?搜索元素
- 9.6.?訪問元素屬性
- 9.7.?Segue [9]
- 第?10?章?腳本和流
- 10.1.?抽象輸入源
- 10.2.?標準輸入、輸出和錯誤
- 10.3.?查詢緩沖節點
- 10.4.?查找節點的直接子節點
- 10.5.?根據節點類型創建不同的處理器
- 10.6.?處理命令行參數
- 10.7.?全部放在一起
- 10.8.?小結
- 第?11?章?HTTP Web 服務
- 11.1.?概覽
- 11.2.?避免通過 HTTP 重復地獲取數據
- 11.3.?HTTP 的特性
- 11.4.?調試 HTTP web 服務
- 11.5.?設置 User-Agent
- 11.6.?處理 Last-Modified 和 ETag
- 11.7.?處理重定向
- 11.8.?處理壓縮數據
- 11.9.?全部放在一起
- 11.10.?小結
- 第?12?章?SOAP Web 服務
- 12.1.?概覽
- 12.2.?安裝 SOAP 庫
- 12.3.?步入 SOAP
- 12.4.? SOAP 網絡服務查錯
- 12.5.?WSDL 介紹
- 12.6.?以 WSDL 進行 SOAP 內省
- 12.7.?搜索 Google
- 12.8.? SOAP 網絡服務故障排除
- 12.9.?小結
- 第?13?章?單元測試
- 13.1.?羅馬數字程序介紹 II
- 13.2.?深入
- 13.3.?romantest.py 介紹
- 13.4.?正面測試 (Testing for success)
- 13.5.?負面測試 (Testing for failure)
- 13.6.?完備性檢測 (Testing for sanity)
- 第?14?章?測試優先編程
- 14.1.?roman.py, 第 1 階段
- 14.2.?roman.py, 第 2 階段
- 14.3.?roman.py, 第 3 階段
- 14.4.?roman.py, 第 4 階段
- 14.5.?roman.py, 第 5 階段
- 第?15?章?重構
- 15.1.?處理 bugs
- 15.2.?應對需求變化
- 15.3.?重構
- 15.4.?后記
- 15.5.?小結
- 第?16?章?函數編程
- 16.1.?概覽
- 16.2.?找到路徑
- 16.3.?重識列表過濾
- 16.4.?重識列表映射
- 16.5.?數據中心思想編程
- 16.6.?動態導入模塊
- 16.7.?全部放在一起
- 16.8.?小結
- 第?17?章?動態函數
- 17.1.?概覽
- 17.2.?plural.py, 第 1 階段
- 17.3.?plural.py, 第 2 階段
- 17.4.?plural.py, 第 3 階段
- 17.5.?plural.py, 第 4 階段
- 17.6.?plural.py, 第 5 階段
- 17.7.?plural.py, 第 6 階段
- 17.8.?小結
- 第?18?章?性能優化
- 18.1.?概覽
- 18.2.?使用 timeit 模塊
- 18.3.?優化正則表達式
- 18.4.?優化字典查找
- 18.5.?優化列表操作
- 18.6.?優化字符串操作
- 18.7.?小結
- 附錄?A.?進一步閱讀
- 附錄?B.?五分鐘回顧
- 附錄?C.?技巧和竅門
- 附錄?D.?示例清單
- 附錄?E.?修訂歷史
- 附錄?F.?關于本書
- 附錄 G. GNU Free Documentation License
- G.0. Preamble
- G.1.?Applicability and definitions
- G.2.?Verbatim copying
- G.3.?Copying in quantity
- G.4.?Modifications
- G.5.?Combining documents
- G.6.?Collections of documents
- G.7.?Aggregation with independent works
- G.8.?Translation
- G.9.?Termination
- G.10.?Future revisions of this license
- G.11.?How to use this License for your documents
- 附錄 H. GNU 自由文檔協議
- H.0. 序
- H.1.?適用范圍和定義
- H.2.?原樣復制
- H.3.?大量復制
- H.4.?修改
- H.5.?合并文檔
- H.6.?文檔合集
- H.7.?獨立著作聚集
- H.8.?翻譯
- H.9.?終止協議
- H.10.?協議將來的修訂
- H.11.?如何為你的文檔使用本協議
- 附錄 I. Python license
- I.A. History of the software
- I.B.?Terms and conditions for accessing or otherwise using Python
- 附錄 J. Python 協議
- J.0. 關于譯文的聲明
- J.A.?軟件的歷史
- J.B.?使用 Python 的條款和條件