Python in a Nutshell, 2/e (Paperback)
暫譯: 《Python 精要手冊(第二版)》

Alex Martelli

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

商品描述

Description

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 powerful but scantily documented modules. This comprehensive reference guide makes it easy to look up 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.

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

Python in a Nutshell, Second Edition covers more than the language itself; it also deals with the most frequently used parts of the standard library, and the most popular and important third party extensions. Revised and expanded for Python 2.5, this book now contains the gory details of Python's new subprocess module and breaking news about Microsoft's new IronPython project. Our "Nutshell" format fits Python perfectly by presenting the highlights of the most important modules and functions in its standard library, which cover over 90% of your practical programming needs. This book includes:

  • A fast-paced tutorial on the syntax of the Python language
  • An explanation of object-oriented programming in Python
  • Coverage of iterators, generators, exceptions, modules, packages, strings, and regular expressions
  • A quick reference for Python's built-in types and functions and key modules
  • Reference material on important third-party extensions, such as Numeric and Tkinter
  • Information about extending and embedding Python

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

Praise for the First Edition:

"In a nutshell, Python in a Nutshell serves one primary goal: to act as an immediately accessible goal for the Python language. True, you can get most of the same core information that is presented within the covers of this volume online, but this will invariably be broken into multiple files, and in all likelihood lacking the examples or the exact syntax description necessary to truly understand a command."
--Richard Cobbett, Linux Format

"O'Reilly has several good books, of which Python in a Nutshell by Alex Martelli is probably the best for giving you some idea of what Python is about and how to do useful things with it."
--Jerry Pournelle, Byte Magazine

商品描述(中文翻譯)

這本書為 Python 程式設計師提供了一個方便的參考,當他們需要幫助記憶或解讀這個開源語言的語法及其許多強大但文檔稀少的模組時,可以隨時查閱。這本全面的參考指南使查找最常需要的信息變得簡單,不僅關於 Python 語言本身,還包括標準庫中最常用的部分以及最重要的第三方擴展。

詢問任何 Python 愛好者,你會聽到 Python 程式設計師擁有一切:一種優雅的物件導向語言,具有可讀性和可維護的語法,能夠輕鬆與 C、C++、Java 或 C# 的組件集成,並擁有大量預先編碼的標準庫和第三方擴展模組。此外,Python 易於學習,但又足夠強大,可以應對最具挑戰性的程式設計任務。然而,Python 程式設計師過去缺乏的是一個簡潔明瞭的參考資源,提供適當的指導,幫助他們最佳利用 Python 的強大功能。《Python in a Nutshell》填補了這一需求。

《Python in a Nutshell》第二版涵蓋的不僅僅是語言本身;它還涉及標準庫中最常用的部分,以及最受歡迎和重要的第三方擴展。這本書經過修訂和擴展,以適應 Python 2.5,現在包含了 Python 新的 subprocess 模組的詳細信息,以及有關微軟新 IronPython 項目的最新消息。我們的「Nutshell」格式完美地適應了 Python,通過呈現標準庫中最重要模組和函數的重點,涵蓋了超過 90% 的實際程式設計需求。這本書包括:

- 一個快速的 Python 語言語法教程
- Python 中物件導向程式設計的解釋
- 迭代器、生成器、例外、模組、包、字串和正則表達式的涵蓋
- Python 內建類型和函數及關鍵模組的快速參考
- 重要第三方擴展的參考資料,如 Numeric 和 Tkinter
- 擴展和嵌入 Python 的信息

《Python in a Nutshell》提供了一個堅實、無廢話的快速參考,涵蓋程式設計師最依賴的信息。這本書將立即在任何 Python 程式設計師的圖書館中佔有一席之地。

對第一版的讚譽:
「簡而言之,《Python in a Nutshell》服務於一個主要目標:作為 Python 語言的即時可訪問資源。確實,你可以在線獲得本書中大部分相同的核心信息,但這些信息往往會分散在多個文件中,並且很可能缺乏必要的範例或準確的語法描述,以真正理解一個命令。」--Richard Cobbett,《Linux Format》

「O'Reilly 有幾本不錯的書,其中 Alex Martelli 的《Python in a Nutshell》可能是最能讓你了解 Python 是什麼以及如何用它做有用事情的書。」--Jerry Pournelle,《Byte Magazine》