diveintopython.org | |
Python for experienced programmers |
深入Python
2001年2月12日
版權所有© 2000, 2001 by Mark Pilgrim
本文中文譯本由limodou翻譯 2001年2月26日-2001年3月17日 版本1.0
本書位於http://diveintopython.org/站點。如果你是在別的地方讀到這本書,可能看到的不是最新版本。
Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in GNU Free Documentation License.
允許在遵守 GNU 自由文檔許可證(GNU Free Documentation License,版本1.1或由自由軟件基金會公佈的最新版本)條款的規定下,拷貝,發佈,並且/或者修改這個文檔。本文檔沒有不可變部分,沒有封面文字,沒有封底文字。在GNU Free Documentation License中包含了許可證的一份拷貝。
The example programs in this book are free software; you can redistribute and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of the license is included in GNU General Public License.
在這本書中的例程是自由軟件。你可以在遵守 GNU 通用公共許可證(由自由軟件基金會公佈的第2版,或(根據你的選擇)更新的版本)條款的規定下,重新發布,並且/或者修改它們。在GNU General Public License中包含了許可證的一份拷貝。
如要拷貝,發佈,修改本文檔,請按照FDL的要求,保留版權說明,及上述聲明。
目錄
- 前言
- 1. 開始瞭解Python
- 2. 自省的威力
- 2.1. 接觸
- 2.2. 使用 from module import 導入模塊
- 2.3. 可選和定名參數
- 2.4. type,str,dir,和其它內置函數
- 2.5. 使用 getattr 得到對象各種引用
- 2.6. 過濾列表
- 2.7. and-or 技巧
- 2.8. 使用 lambda 函數
- 2.9. 全部放在一起
- 2.10. 小結
- 3. 面向對象框架
- A. Further reading
- B. A 5-minute review
- C. Tips and tricks
- D. List of examples
- E. Revision history
- F. About the book
- 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 General Public License