Python in a Nutshell
暫譯: Python 精要指南

Alex Martelli

  • 出版商: O'Reilly
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 600
  • 裝訂: Paperback
  • ISBN: 0596001886
  • ISBN-13: 9780596001889
  • 相關分類: Python程式語言
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Ask any Python aficionado and you'll hear that Python programmers have it all: an elegant language that offers object-oriented programming support, a readable, maintainable syntax, integration with C components, and an enormous collection of precoded standard library and extension modules. Moreover, Python is easy to learn but powerful enough to take on the most ambitious programming challenges. But what Python programmers have lacked is one concise and clear reference resource, with the appropriate measure of guidance in how best to use Python's great power. Now Python in a Nutshell fills this need.

In the tradition of O'Reilly's "In a Nutshell" series, this book offers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many modules. This comprehensive reference guide makes it easy to look up all the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions.

Python in a Nutshell focuses on Python 2.2 (and all its point releases), currently the most stable and widespread Python release. This book includes:

  • A fast-paced tutorial on the syntax of the Python language itself
  • An explanation of object-oriented programming in Python, covering both the classic and new-style object models
  • Coverage of other core topics, including exceptions, modules, strings, and regular expressions
  • A quick reference for Python's built-in types and functions, as well as the key modules in the Python standard library, including sys, os, time, thread, math, and socket, among many others
  • Reference material on important third-party extensions, such as Numeric and Tkinter
  • Information about extending Python and embedding it into other applications


Python in a Nutshell provides a solid, no-nonsense quick reference to information that programmers rely on the most. This latest addition to the best-selling "In a Nutshell" series will immediately earn its place in any Python programmer's library.

Table of Contents

Preface

I. Getting Started with Python

1. Introduction to Python

2. Installation

3. The Python Interpreter

 


 

II. Core Python Language and Built-ins

4. The Python Language

5. Object-Oriented Python

6. Exception

7. Modules

8. Core Built-ins

9. Strings and Regular Expressions

III. Python Library and Extension Modules

10. File and Text Operations

11. Persistence and Databases

12. Time Operations

13. Controlling Execution

14. Threads and Processes

15. Numeric Processing

16. Tkinter GUIs

17. Testing, Debugging, and Optimizing

IV. Network and Web Programming

18. Client-Side Network Protocol Modules

19. Sockets and Server-Side Network Protocol Modules

20. CGI Scripting and Alternative

21. MIME and Network Encodings

22. Structured Text: HTML

23. Structured Text: XML

V. Extending and Embedding

24. Extending and Embedding Classic Python

25. Extending and Embedding Jython

26. Distributing Extensions and Programs

Index

商品描述(中文翻譯)

請問任何一位 Python 愛好者,你會聽到 Python 程式設計師擁有一切:一種優雅的語言,提供物件導向程式設計的支援、可讀性高且易於維護的語法、與 C 元件的整合,以及龐大的預先編碼的標準庫和擴展模組。此外,Python 學習起來容易,但足夠強大以應對最具挑戰性的程式設計任務。然而,Python 程式設計師所缺乏的是一個簡潔明瞭的參考資源,提供如何最佳利用 Python 強大功能的適當指導。現在,《Python in a Nutshell》滿足了這一需求。

遵循 O'Reilly 的「In a Nutshell」系列傳統,本書為 Python 程式設計師提供了一個查詢的地方,當他們需要幫助記住或解讀這種開源語言及其眾多模組的語法時。這本全面的參考指南使查找所有最常需要的信息變得簡單——不僅僅是關於 Python 語言本身,還包括標準庫中最常用的部分和最重要的第三方擴展。

《Python in a Nutshell》專注於 Python 2.2(及其所有小版本),目前是最穩定和廣泛使用的 Python 發行版。本書包括:
- 一個快速的 Python 語言語法教程
- 對 Python 中物件導向程式設計的解釋,涵蓋經典和新式物件模型
- 涵蓋其他核心主題,包括例外、模組、字串和正則表達式
- Python 內建類型和函數的快速參考,以及 Python 標準庫中的關鍵模組,包括 sys、os、time、thread、math 和 socket 等等
- 重要第三方擴展的參考資料,如 Numeric 和 Tkinter
- 有關擴展 Python 和將其嵌入其他應用程序的信息

《Python in a Nutshell》提供了一個穩固、實用的快速參考,涵蓋程式設計師最依賴的信息。這本最新的《In a Nutshell》系列暢銷書將立即在任何 Python 程式設計師的圖書館中佔有一席之地。

目錄

前言

I. 開始使用 Python

1. Python 介紹
2. 安裝
3. Python 解譯器

II. 核心 Python 語言和內建函數

4. Python 語言
5. 物件導向 Python
6. 例外
7. 模組
8. 核心內建函數
9. 字串和正則表達式

III. Python 庫和擴展模組

10. 檔案和文本操作
11. 持久性和資料庫
12. 時間操作
13. 控制執行
14. 執行緒和進程
15. 數值處理
16. Tkinter GUI
17. 測試、除錯和優化

IV. 網路和網頁程式設計

18. 客戶端網路協定模組
19. 套接字和伺服器端網路協定模組
20. CGI 腳本和替代方案
21. MIME 和網路編碼
22. 結構化文本:HTML
23. 結構化文本:XML

V. 擴展和嵌入

24. 擴展和嵌入經典 Python
25. 擴展和嵌入 Jython
26. 分發擴展和程式
索引