Python Essential Reference

David M. Beazley

出版时间

2009-07-19

ISBN

9780672329784

评分

★★★★★
书籍介绍
这不是一本教你入门Python的书,而是一本给已经会编程的人'速成'Python的参考手册。多位读者指出:学过其他面向对象语言的人翻它即可上手,因为它默认你懂编程思维,直接从语法、系统库、嵌入与扩展讲起,结构与官方文档相近,适合当作案头手册随时查阅。书中对MRO的C3算法、各类编码区别等细节讲得准确而详尽,被不少人称作'第二本Python书'。需要提醒的是:它信息密度极高、篇幅紧凑,有人读完觉得'后半部没什么可读',也有人嫌性价比不高;此外中文版翻译质量争议较大,建议搭配英文原版对照阅读。总体而言,它适合有经验的开发者作为权威参考,而非初学者的第一本教材。
AI导读
核心看点
  • 高度浓缩Python语法与标准库,适合作为案头速查手册。
  • 前半部分对语言机制阐述清晰,后半部分库函数覆盖全面。
  • 基于Python 2.6/3.0,内容准确,是进阶开发的权威参考。
读者共识
  • 公认的优质Python参考书,被誉为“最好的第二本Python书”。
  • 翻译版本口碑崩盘,错误百出,读者普遍强烈抵制中文译本。
  • 内容虽旧但核心逻辑经典,适合有一定基础者系统梳理知识。
精彩摘录
  • "Many people, including the author, even use interactive Python as their desktop calculator."
  • "When you use Python interactively, the special variable _ holds the result of the last operation."
  • "A newline terminates each statement. However, you can use a semicolon to separate statements on the same line."
  • "Although str() and repr() both create strings, their output is usually slightly different. str() produces the output that you get when you use the print statement, whereas repr() creates a string that you type into a program to exactly represent the value of an object."
  • "The format() function is used to convert a value to a string with a specific formatting applied."
  • "The expression [float(line) for line in lines] constructs a new list by looping over all the strings in the list lines and applying the function float() to each element."
  • "a = () b = (item,) c = item,"
  • "name, shares, price = stock"
用户评论
非入门书,对Python这门技术进行非常有条理的阐述;英文看的有些吃力,过段时间再来回顾体会。
是本好书,清明3天要读完
被拯救了
包含语法、系统库、嵌入与扩展的全面内容,与官方文档范围和叙事结构挺像,不错的线下手册。基于Python2.6和3.0,内容准确而丰富,提及了MRO的C3算法、各类Encoding的详细区别等等。
Very clear
前半部分写得很好,后面讲库的跳着翻了点。觉得可以用作入门到流畅之间的过渡。
工具书,随手翻。
小而全 可以多看几遍
都出到第五版了,可见其质量。是很好的reference。
一本书可作两本读,“Probably the best second book on Python”。
下载
收藏