Dive Into Python - Mark Pilgrim

Dive Into Python

Mark Pilgrim

出版社

Apress

出版时间

2004-11-05

ISBN

9781590593561

评分

★★★★★
书籍介绍
Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, yet simple language to deploy their products. Dive Into Python is a hands-on guide to the Python language. Each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end. This is the perfect resource for you if you like to jump into languages fast and get going right away. If youre just starting to learn Python, first pick up a copy of Magnus Lie Hetland's Practical Python.
AI导读
核心看点
  • 采用代码拆解法,从完整示例入手深入讲解
  • 涵盖元组、自省、getattr等核心Python特性
  • 强调函数即对象,提升对Python底层理解
适合谁读
  • 有编程基础,希望快速上手Python的开发者
  • 喜欢通过实战案例学习,而非枯燥语法书的人
  • 想深入理解Python自省机制的高级初学者
读前提醒
  • 本书基于Python 2,语法与3.x有差异需注意
  • 纯新手建议先读官方教程或《简明Python》
  • 部分版本内容较旧,建议结合新版文档阅读
读者共识
  • 示例代码实用,讲解深入浅出,阅读体验轻松
  • 适合有经验程序员入门,纯小白可能觉得吃力
  • 虽版本老旧,但核心思想与编程技巧仍具价值

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

精彩摘录
  • "A tuple is an immutable list. A tuble can NOT be changed in any way once it is created. Tuples Have No Methods"
  • ">>> import timeit >>> t = timeit.Timer("soundex.soundex('Pilgrim')", ... "import soundex") >>> t.timeit() 8.21683733547 >>> t.repeat(3, 2000000) [16.48319309109, 16.46128984923, 16.44203948912] 1.The timeit module defines one class, Timer, which takes two arguments. Both arguments are strings. The f"
  • "与 C 一样, Python 使用 == 做比较, 使用 = 做赋值。 与 C 不一样, Python 不支持行内赋值, 所以不会出现想要进行比较却意外地出现赋值的情况。"
  • "Python的众多强大功能之一:自省。自省是指代码可以查看内存中以对象形式存在的其他模块和函数,获取它们的信息,并对它们进行操作。"
  • "getattr函数是一个有用到令人无法致信的内置函数,可以返回任何对象的任何属性。"
  • "由于元组没有方法 ,所以不管指定什么属性名称getattr都会引发一个异常。"
  • "getattr常见的使用模式是作为一个分发者。"
  • "getattr能够使用可选的第三个函数,一个缺省返回值。"
作者简介
Mark Pilgrim is an accessibility architect in the IBM Emerging Technologies Group. He is the author of several technical books, including Dive Into Accessibility, a free online tutorial on web accessibility. He lives in North Carolina with his wife and newborn son, and spends his copious free time sunbathing, skydiving, and reading Immanuel Kant's Critique of Pure Reason.
用户评论
适合有经验的程序员python入门
据说是神书,然后我稀里糊涂就读完了
本书有灌水之嫌
抛弃,没发现多少有用的 顺便某基友在我Kindle上看到这本书之后喷了半天这本书……
看过电子版,因为它我的python学习推迟了一年
2007年就靠这一本书完成的python入门
2019-03-05,没读完,标个读过,以后有机会再读。2017.11.16在读更新,现在都在学web方面的知识。有机会还是把此书快速的过一遍吧。2017.6.16,在读这本书的中文版。
对于有些Python项目经验的不合适了 入门还可以
读了一部分,xml,html,soap这些没有读。
什么狗屁玩意
收藏