注册 | 登录读书好,好读书,读好书!
读书网-DuShu.com
当前位置: 首页出版图书科学技术计算机/网络软件与程序设计其他编程语言/工具学习python:英文版

学习python:英文版

学习python:英文版

定 价:¥68.00

作 者: Mark Lutz,David Ascber著
出版社: 东南大学出版社
丛编项: 东南大学出版社O'Reilly图书系列
标 签: Python

ISBN: 9787564100476 出版时间: 2005-01-01 包装: 胶版纸
开本: 23cm 页数: 591 字数:  

内容简介

  Python是流行、开源、面向对象的编程语言,既可以用于编写单机运行的程序也可以编写脚本程序,具有可移植,强大、易用等特点。跟随专业教师学习是最快捷的掌握此语言的方式。新版的《学习Python》把你带到MarkLutz和DavidAscher面前,他们是著名的Python专家和培训师,他们的用语亲切且组织良好的文章已经指导许多编程者精通这种语言。对本书第一版的褒奖:“这本书最好之处在于作者在提供有用的实例与详细解释说明之间取得近乎完美的平衡。无论你是有经验的计算机程序员还是初学者,这本书对于学习Python语言都是非常适合的。”———AndrewMorrison,CedarLug《学习Python》(第二版)给程序员提供了一个学习Python和面向对象编程的综合学习工具。它根据1999年该书第一版发布以来语言的大量变化做了更新。本书介绍了最近发布的Python2.3的基本要素并涵盖了新的特性,如列表内涵,嵌套作用域和迭代器/产生器。除了语言特性,《学习Python》(第二版)还为初级程序员提供了新的内容,包括新的面向对象编程回顾,动态类型,新的关于编程起步和配置选项的讨论,新的关于文档的内容等等。全书用新的实例使得语言特性的应用更加具体。《学习Python》(第二版)首先给出了理解和构造Python程序必需的所有信息,包括类型、运算符、表达式、类、函数、模块和异常。然后,作者给出了更高级的内容,通过真实的应用和可用扩展库说明如何用Python完成一般的任务。全书提供了练习以检验自己的新技能。《学习Python》(第二版)是本可灵活选读的图书,它让读者能够集中深入Python语言的核心。随着通读全书,你将获得对Python深入而完整的理解,这将帮助你自己开发大型的应用程序。本书适合于任何不仅仅想停留于了解Python而且想更好的掌握它的人。

作者简介

暂缺《学习python:英文版》作者简介

图书目录

Preface
Part I. Getting Started
1. A Python Q&A Session
Why Do People Use Python?
Is Python a Scripting Language?
Okay, But What's the Downside?
Who Uses Python Today?
What Can I Do with Python?
What Are Python's Technical Strengths?
How Does Python Stack Up to Language X?
2. How Python Runs Programs
Introducing the Python Interpreter
Program Execution
Execution Model Variations
3. How You Run Programs
Interactive Coding
System Command Lines and Files
Clicking Windows File Icons
Module Imports and Reloads
The IDLE User Interface
Other IDEs
Embedding Calls
Frozen Binary Executables
Text Editor Launch Options
Other Launch Options
Future Possibilities?
Which Option Should I Use?
Part I Exercises
Part II. Types and Operations
4. Numbers
Python Program Structure
Why Use Built-in Types?
Numbers
Python Expression Operators
Numbers in Action
The Dynamic Typing Interlude
5. Strings
String Literals
Strings in Action
String Formatting
String Methods
General Type Categories
6. Lists and Dictionaries
Lists
Lists in Action
Dictionaries
Dictionaries in Action
7. Tuples, Files, and Everything Else
Tuples
Files
Type Categories Revisited
Object Generality
References Versus Copies
Comparisons, Equality, and Truth
Python's Type Hierarchies
Other Types in Python
Built-in Type Gotchas
Part II Exercises
Part III. Statements and Syntax
8. Assignment, Expressions, and Print
Assignment Statements
Expression Statements
Print Statements
9. if Tests
if Statements
Python Syntax Rules
Truth Tests
10. while and for loops
while Loops
break, continue, pass, and the Loop else
for Loops
Loop Variations
11. Documenting Python Code
The Python Documentation Interlude
Common Coding Gotchas
Part III Exercises
Part IV. Functions
12. Function Basics
Why Use Functions?
Coding Functions
A First Example: Definitions and Calls
A Second Example: Intersecting Sequences
13. Scopes and Arguments
Scope Rules
The global Statement
Scopes and Nested Functions
Passing Arguments
Special Argument Matching Modes
14. Advanced Function Topics
Anonymous Functions: lambda
Applying Functions to Arguments
Mapping Functions Over Sequences
Functional Programming Tools
List Comprehensions
Generators and Iterators
Function Design Concepts
Function Gotchas
Part IV Exercises
Part V. Modules
15. Modules: The Big Picture
Why Use Modules?
Python Program Architecture
How Imports Work
16. Module Coding Basics
Module Creation
Module Usage
Module Namespaces
Reloading Modules
17. Module Packages
Package Import Basics
Package Import Example
Why Use Package Imports?
A Tale of Three Systems
18. Advanced Module Topics
Data Hiding in Modules
Enabling Future Language Features
Mixed Usage Modes: __name__ and __main_
Changing the Module Search Path
The import as Extension
Module Design Concepts
Module Gotchas
Part V Exercises
Part Vl. Classes and OOP
19. OOP: The Big Picture
Why Use Classes?
OOP from 30,000 Feet
20. Class Coding Basics
Classes Generate Multiple Instance Objects
Classes Are Customized by Inheritance
Classes Can Intercept Python Operators
21. Class Coding Details
The Class Statement
Methods
Inheritance
Operator Overloading
Namespaces: The Whole Story
22. Designing with Classes
Python and OOP
Classes as Records
OOP and Inheritance: "is-a" Relationships
OOP and Composition: "has-a" Relationships
OOP and Delegation
Multiple Inheritance
Classes Are Objects: Generic Object Factories
Methods Are Objects: Bound or Unbound
Documentation Strings Revisited
Classes Versus Modules
23. Advanced Class Topics
Extending Built-in Types
Pseudo-Private Class Attributes
"New Style" Classes in Python 2.2
Class Gotchas
Part VI Exercises
Part VII. Exceptions and Tools
24. Exception Basics
Why Use Exceptions?
Exception Handling: The Short Story
The try/except/else Statement
The try/finally Statement
The raise Statement
The assert Statement
25. Exception Objects
String-Based Exceptions
Class-Based Exceptions
General raise Statement Forms
26. Designing with Exceptions
Nesting Exception Handlers
Exception Idioms
Exception Design Tips
Exception Gotchas
Core Language Summary
Part VII Exercises
Part VIII. The Outer Layers
27. Common Tasks in Python
Conversions, Numbers, and Comparisons
Manipulating Strings
Data Structure Manipulations
Manipulating Files and Directories
Internet-Related Modules
Executing Programs
Debugging, Testing, Timing, Profiling
Exercises
28. Frameworks
An Automated Complaint System
Interfacing with COM: Cheap Public Relations
A Tkinter-Based GUI Editor for Managing Form Data
Jython: The Felicitous Union of Python and Java
Exercises
29. Python Resources
Layers of Community
The Process
Services and Products
The Legal Framework: The Python Software Foundation
Software
Popular Third-Party Software
Web Application Frameworks
Tools for Python Developers
Part IX. Appendixes
A. Installation and Configuration
B. Solutions to Exercises
Index

本目录推荐