Python编程(英文影印版)(第四版 上下册)
基本信息
- 原书名: Programming Python
- 原出版社: O'Reilly Media
内容简介回到顶部↑
书籍
计算机书籍
在你掌握python的基本原理之后,你会如何应用它呢?mark lutz编写的《python编程(影印版第4版)》针对该语言的主要应用领域——系统管理、gui和web——做了深入讲解,并且探索了它在数据库、网络、前端脚本撰写层、文本处理和更多方面的使用。通过重点关注常用工具和库,你将会对python在实际现实世界里的编程有更深的理解。
你将通过一种清晰和简洁的方式——讲解大量正确用法和常见惯例的例子——学会语言的语法和编程技巧。本书针对3.x版本做了完全的更新,它探讨了python如何成为软件开发工具,并且特别为此设计了很多代码示例。
《python编程(影印版第4版)》的内容包括:
python快速入门:搭建一个简单的例子,包括数据表示、面向对象编程、对象持久化、gui和网站基础;
系统编程:针对命令行脚本编写、处理文件和文件夹、并行运行程序等需求探索系统接口工具和技术;
gui编程:学习使用python tkinter组件库来创建完整的用户界面;
互联网编程:访问客户端网络协议和电子邮件工具,使用cgi脚本,以及学习网站搭建技术;
更多应用python的地方:实现数据结构,分析基于文本的信息,访问数据库,以及扩展和嵌入python。
计算机书籍
在你掌握python的基本原理之后,你会如何应用它呢?mark lutz编写的《python编程(影印版第4版)》针对该语言的主要应用领域——系统管理、gui和web——做了深入讲解,并且探索了它在数据库、网络、前端脚本撰写层、文本处理和更多方面的使用。通过重点关注常用工具和库,你将会对python在实际现实世界里的编程有更深的理解。
你将通过一种清晰和简洁的方式——讲解大量正确用法和常见惯例的例子——学会语言的语法和编程技巧。本书针对3.x版本做了完全的更新,它探讨了python如何成为软件开发工具,并且特别为此设计了很多代码示例。
《python编程(影印版第4版)》的内容包括:
python快速入门:搭建一个简单的例子,包括数据表示、面向对象编程、对象持久化、gui和网站基础;
系统编程:针对命令行脚本编写、处理文件和文件夹、并行运行程序等需求探索系统接口工具和技术;
gui编程:学习使用python tkinter组件库来创建完整的用户界面;
互联网编程:访问客户端网络协议和电子邮件工具,使用cgi脚本,以及学习网站搭建技术;
更多应用python的地方:实现数据结构,分析基于文本的信息,访问数据库,以及扩展和嵌入python。
作译者回到顶部↑
本书提供作译者介绍
Mark Lutz是Python培训的世界领先者,他是最早和最畅销Python著作的作者,从1992年起就是Python社区的先锋人物。Mark有25年的软件开发经验而且是《Python编程》前一版的作者,也是O’Reilly的《Learning Python and Python Pocket Reference》的作者。
.. << 查看详细
.. << 查看详细
目录回到顶部↑
《python编程(英文影印版)(第四版 上下册)》
preface
part i. the beginning
1. a sneak preview
part ii. system programming
2. system tools
3. script execution context
4. file and directory tools
5. parallel system tools
6. complete system programs
part iii. gui programming
7. graphical user interfaces
8. a tkinter tour, part
9. a tkinter tour, part 2
10. gui coding techniques
11. complete gui programs
part iv. internet programming
12. network scripting
13. client-side scripting
14. the pymailgui client
preface
part i. the beginning
1. a sneak preview
part ii. system programming
2. system tools
3. script execution context
4. file and directory tools
5. parallel system tools
6. complete system programs
part iii. gui programming
7. graphical user interfaces
8. a tkinter tour, part
9. a tkinter tour, part 2
10. gui coding techniques
11. complete gui programs
part iv. internet programming
12. network scripting
13. client-side scripting
14. the pymailgui client
前言回到顶部↑
"And Now for Something Completely Different..."
This book explores ways to apply the Python programming language in common application domains and realistically scaled tasks. It's about what you can do with the language once you've mastered its fundamentals.
This book assumes you are relatively new to each of the application domains it covers--GUIs, the Internet, databases, systems programming, and so on--and presents each from the ground up, in tutorial fashion. Along the way, it focuses on commonly used tools and libraries, rather than language fundamentals. The net result is a resource that provides readers with an in-depth understanding of Python's roles in practical, realworld programming work.
As a subtheme, this book also explores Python's relevance as a software development tool--a role that many would classify as well beyond those typically associated with "scripting." In fact, many of this book's examples are scaled specifically for this purpose; among these, we'll incrementally develop email clients that top out at thousands of lines of code. Programming at this full scale will always be challenging work, but we'll find that it's also substantially quicker and easier when done with Python.
This Fourth Edition has been updated to present the language, libraries, and practice of Python 3.X. Specifically, its examples use Python 3.1--the most recent version of Python at the time of writing--and its major examples were tested successfully under the third alpha release of Python 3.2 just prior to publication, but they reflect the version of the language common to the entire 3.X line. This edition has also been reorganized in ways that both streamline some of its former material and allow for coverage of newly emerged tools and topics.
Because this edition's readership will include both newcomers as well as prior edition veterans, I want to use this Preface to expand on this book's purpose and scope before we jump into code.
About This Book
This book is a tutorial introduction to using Python in common application domains and tasks. It teaches how to apply Python for system administration, GUIs, and the Web, and explores its roles in networking, databases, frontend scripting layers, text processing, and more. Although the Python language is used along the way, this book's focus is on application to real-world tasks instead of language fundamentals.
This Book's Ecosystem
Because of its scope, this book is designed to work best as the second of a two-volume set, and to be supplemented by a third. Most importantly, this book is an applications programming follow-up to the core language book Learning Python, whose subjects are officially prerequisite material here. Here's how the three books are related:
Learning Python covers the fundamentals of Python programming in depth. It fo- cuses on the core Python language, and its topics are prerequisite to this book. Programming Python, this book, covers the application of Python to real-world
programming tasks. It focuses on libraries and tools, and it assumes you already know Python fundamentals.
Python Pocket Reference provides a quick reference to details not listed exhaustively here. It doesn't teach much, but it allows you to look up details fast.
In some sense, this book is to application programming what Learning Python is to the core language--a gradual tutorial, which makes almost no assumptions about your background and presents each topic from the ground up. By studying this book's coverage of Web basics, for example, you'll be equipped to build simple websites, and you will be able to make sense of more advanced frameworks and tools as your needs evolve.GUIs are similarly taught incrementally, from basic to advanced.
In addition, this book is designed to be supplemented by the quick-reference book Python Pocket Reference, which provides the small details finessed here and serves as a resource for looking up the fine points. That book is reference only, and is largely void of both examples and narrative, but it serves to augment and complement both Learning Python's fundamentals and Programming Python's applications. Because its current Fourth Edition gives both Python 2.X and 3.X versions of the tools it covers,that book also serves as a resource for readers transitioning between the two Python lines (more on this in a moment).'
' Disclosure: I am the author of all three books mentioned in this section, which affords me the luxury of tightly controlling their scopes in order to avoid overlap. It also means that as an author, I try to avoid commenting on the many other Python books available, some of which are very good and may cover topics not addressed in any of my own books. Please see the Web for other Python resources. All three of my books reflect my 13 years on the Python training trail and stem from the original Programming Python written back in 1995 [insert grizzled prospector photo here.
What This Book Is Not
Because of the scopes carved out by the related books I just mentioned, this book's scope follows two explicit constraints:
It does not cover Python language fundamentals
It is not intended as a language reference
This book explores ways to apply the Python programming language in common application domains and realistically scaled tasks. It's about what you can do with the language once you've mastered its fundamentals.
This book assumes you are relatively new to each of the application domains it covers--GUIs, the Internet, databases, systems programming, and so on--and presents each from the ground up, in tutorial fashion. Along the way, it focuses on commonly used tools and libraries, rather than language fundamentals. The net result is a resource that provides readers with an in-depth understanding of Python's roles in practical, realworld programming work.
As a subtheme, this book also explores Python's relevance as a software development tool--a role that many would classify as well beyond those typically associated with "scripting." In fact, many of this book's examples are scaled specifically for this purpose; among these, we'll incrementally develop email clients that top out at thousands of lines of code. Programming at this full scale will always be challenging work, but we'll find that it's also substantially quicker and easier when done with Python.
This Fourth Edition has been updated to present the language, libraries, and practice of Python 3.X. Specifically, its examples use Python 3.1--the most recent version of Python at the time of writing--and its major examples were tested successfully under the third alpha release of Python 3.2 just prior to publication, but they reflect the version of the language common to the entire 3.X line. This edition has also been reorganized in ways that both streamline some of its former material and allow for coverage of newly emerged tools and topics.
Because this edition's readership will include both newcomers as well as prior edition veterans, I want to use this Preface to expand on this book's purpose and scope before we jump into code.
About This Book
This book is a tutorial introduction to using Python in common application domains and tasks. It teaches how to apply Python for system administration, GUIs, and the Web, and explores its roles in networking, databases, frontend scripting layers, text processing, and more. Although the Python language is used along the way, this book's focus is on application to real-world tasks instead of language fundamentals.
This Book's Ecosystem
Because of its scope, this book is designed to work best as the second of a two-volume set, and to be supplemented by a third. Most importantly, this book is an applications programming follow-up to the core language book Learning Python, whose subjects are officially prerequisite material here. Here's how the three books are related:
Learning Python covers the fundamentals of Python programming in depth. It fo- cuses on the core Python language, and its topics are prerequisite to this book. Programming Python, this book, covers the application of Python to real-world
programming tasks. It focuses on libraries and tools, and it assumes you already know Python fundamentals.
Python Pocket Reference provides a quick reference to details not listed exhaustively here. It doesn't teach much, but it allows you to look up details fast.
In some sense, this book is to application programming what Learning Python is to the core language--a gradual tutorial, which makes almost no assumptions about your background and presents each topic from the ground up. By studying this book's coverage of Web basics, for example, you'll be equipped to build simple websites, and you will be able to make sense of more advanced frameworks and tools as your needs evolve.GUIs are similarly taught incrementally, from basic to advanced.
In addition, this book is designed to be supplemented by the quick-reference book Python Pocket Reference, which provides the small details finessed here and serves as a resource for looking up the fine points. That book is reference only, and is largely void of both examples and narrative, but it serves to augment and complement both Learning Python's fundamentals and Programming Python's applications. Because its current Fourth Edition gives both Python 2.X and 3.X versions of the tools it covers,that book also serves as a resource for readers transitioning between the two Python lines (more on this in a moment).'
' Disclosure: I am the author of all three books mentioned in this section, which affords me the luxury of tightly controlling their scopes in order to avoid overlap. It also means that as an author, I try to avoid commenting on the many other Python books available, some of which are very good and may cover topics not addressed in any of my own books. Please see the Web for other Python resources. All three of my books reflect my 13 years on the Python training trail and stem from the original Programming Python written back in 1995 [insert grizzled prospector photo here.
What This Book Is Not
Because of the scopes carved out by the related books I just mentioned, this book's scope follows two explicit constraints:
It does not cover Python language fundamentals
It is not intended as a language reference
媒体评论回到顶部↑
“这些章节提供了从问题调查到设计规范等各个方面的内容,它着重于现实问题并且避开常见的障碍。”
——Diane Donovan California Bookwatch
——Diane Donovan California Bookwatch








点击看大图





加载中...

