书籍介绍
这本书最鲜明的特点,是它反其道而行的组织方式:每章都以一段完整、可运行的真实代码开场,再把它拆开逐块讲解,最后重新拼合。对习惯「先讲概念、再看例子」的读者来说,这种由果溯因的读法需要一点适应,但一旦习惯,上手速度会明显加快。它不追求面面俱到的体系化,而是带着读者真正钻进元组、字典、自省、反射这些具体机制里,看 Python 如何让代码「查看并以对象形式操作其它代码」——这种能力正是它区别于其它入门书的地方。不过也要提醒:它更像一个「高级例子+细致讲解」的合集,有人觉得有灌水之嫌,也有人读完后转向官方教程才体会何谓 Pythonic。适合想快速动手、边看边试的初学者;若追求严谨完整的语言体系,它或许不是第一本。
作者简介
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.