Learning Python, 5th Edition - Mark Lutz

Learning Python, 5th Edition

Mark Lutz

出版时间

2013-07-06

ISBN

9781449355739

评分

★★★★★
书籍介绍
Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on author Mark Lutz’s popular training course, this updated fifth edition will help you quickly write efficient, high-quality code with Python. It’s an ideal way to begin, whether you’re new to programming or a professional developer versed in other languages. Complete with quizzes, exercises, and helpful illustrations, this easy-to-follow, self-paced tutorial gets you started with both Python 2.7 and 3.3— the latest releases in the 3.X and 2.X lines—plus all other releases in common use today. You’ll also learn some advanced language features that recently have become more common in Python code. • Explore Python’s major built-in object types such as numbers, lists, and dictionaries • Create and process objects with Python statements, and learn Python’s general syntax model • Use functions to avoid code redundancy and package code for reuse • Organize statements, functions, and other tools into larger components with modules • Dive into classes: Python’s object-oriented programming tool for structuring code • Write large programs with Python’s exception-handling model and development tools • Learn advanced Python tools, including decorators, descriptors, metaclasses, and Unicode processing
AI导读
核心看点
  • 全面深入讲解Python核心语言特性与底层机制
  • 涵盖Python 2.7与3.3版本,对比差异助迁移
  • 强调编程通用法则与引用模型,知其然更知其所以然
适合谁读
  • 零基础编程新手,系统学习Python语法与基础
  • 有其他语言经验的专业开发者,快速掌握Python核心
  • 需要查阅语言细节的进阶者,作为案头参考手册使用
读前提醒
  • 全书篇幅巨大且行文啰嗦,建议按需查阅或跳读
  • 书中缺乏实际项目实践,需结合动手编码加深理解
  • 部分代码示例可能过时,阅读时注意版本兼容性
读者共识
  • 内容极其详尽全面,是了解Python语言本身的权威之作
  • 作者态度诚恳细致,但文字过于冗长,阅读体验较累
  • 适合作为工具书查阅,不建议初学者从头到尾通读

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "Python Is Engineering, Not Art"
  • "Python对操作系统服务的内置接口,使其成为编写可移植的维护操作系统的管理工具和部件(有时也称shell工具)的理想工具。"
  • "Python的简洁以及快速的开发周期十分适合开发GUI程序。Python内置了TKinter的标准面向对象接口Tk GUI API,使Python程序可以生成可移植的本地观感的GUI。"
  • "Python提供了标准的Internet模块,它使得Python程序能够广泛地在多种网络任务中发挥作用,无论是在服务器端还是在客户端都是如此。"
  • "Python可以通过C/C++系统进行扩展,并能够嵌套C/C++系统的特性,使其能够作为一种灵活的黏合语言,可以脚本化处理其他系统和组件的行为。"
  • "对于传统的数据库需求,Python提供了对所有主流关系数据库系统的接口。"
  • "由于使用Python或C编写的组件看起来一样,所以可以在一开始利用Python做系统原型,之后再讲组件移植到C或C++这样的变异语言上。"
  • "《Python学习手册:第4版》从以下3个方面做出了修改: ■ 覆盖了Python 3.0和Python 2.6,本书强调Python 3.0,但是对Python 2.6中的不同之处给出了提示。 ■ 包含了一些新的章节,主要介绍高级的核心语言话题。 ■ 重新组织了一些已有的材料,并且使用新的示例扩展它们以便更清楚。 我(作者Mark Lutz)在2009年撰写本书这一版时,Python分为两支——Python 3.0是新兴的版本并且不兼容地修改了该语言;Python 2.6保持与大量已有的Python代码向后兼容。尽管Python 3被视作是Python的未来,Python 2仍然使用广泛并且"
作者简介
Mark Lutz is a leading Python trainer, the author of Python’s earliest and best-selling texts, and a pioneering figure in the Python world. Mark is the author of the three O’Reilly books: Learning Python, Programming Python, and Python Pocket Reference, all currently in fourth or fifth editions. He has been using and promoting Python since 1992, started writing Python books in 1995, and began teaching Python classes in 1997. As of Spring 2013, Mark has instructed 260 Python training sessions, taught roughly 4,000 students in live classes, and written Python books that have sold 400,000 units and been translated to at least a dozen languages. Together, his two decades of Python efforts have helped to establish it as one of the most widely used programming languages in the world today. In addition, Mark has been in the software field for 30 years. He holds BS and MS degrees in computer science from the University of Wisconsin where he explored implementations of the Prolog language, and over his career has worked as a professional software developer on compilers, programming tools, scripting applications, and assorted client/server systems. Mark maintains a training website (http://learning-python.com) and an additional book support site on the Web (http://www.rmi.net/~lutz).
用户评论
书是好书。字实在是太多。后来就只看代码了。
就是太啰嗦
Verbose but thorough
大部分都知道 还是花了挺久才扫完 挺详细清楚的一本书 benchmark库那章和decorator平时没怎么用到 改天可以试着用一下
重新复习python
@2016-10-30 17:10:57
I don’t want to read the whole documents of python. Then the book provides a great alternative. I see many criticisms about its verbosity, but I like those repetitions. it is convenient for me to remember things. it’s said that the author refused to write the 6th edition because he doesn’t like the new version of python. Cool, but what a pity!
书很好,但是对于非专业初学者一遍很难看出什么名堂。
Super useful. Detail-oriented, but easy to read
读了一半了,开始读oop部分的内容了,应该算是本书的后半部分了吧。优缺点都有吧,作者显然没有处理好详略得当的问题,正所谓优点是详细,缺点也是详细,过于详细就是啰嗦了。另一个缺点就是书中大量对比了2.x和3.x,像我这种根本不关心2.x是什么样子的人来说,这本书的啰嗦点其实是在这的。也比较喜欢作者top-down的叙述方式,就是先给你一个big picture,然后再娓娓道来,有时候我也理解作者的难处,一个概念会在好多章同时出现,有时显得很傻,但实际中也确实是这个样子,每个概念其实都有自己的“多任务”状态的,需要先讲讲这个概念的基础,在切换到下个概念,下个概念的基础讲完之后,再切换回到原来的概念,这可能又是一个让人觉得啰嗦的点。 最后希望作者赶紧更新第六版吧,希望在新版中可以消除对2.x的部分
收藏