Think Python (2/e)

Allen B. Downey

出版时间

2015-12-28

ISBN

9781491939369

评分

★★★★★
书籍介绍
这本书最打动人的地方,是它把'编程'和'调试'当成同一件事来教。作者Downey主张:从一段能运行的代码起步,每次只改一两行,边改边调试,永远让程序保持可用状态。这种'渐进式开发'的思路,对新手尤其珍贵——它把'写出完美代码'的焦虑,拆解成'一步步逼近目标'的踏实。读者反馈里反复出现的,正是这种低门槛带来的安全感:有人用它练英语阅读,有人转码时从中找回'保持快乐'的方式。它不炫技,也不承诺让你突飞猛进,而是诚实地陪你走第一步。适合零基础的自学者,以及愿意慢下来理解'计算机科学家如何思考'的人。
作者简介
Allen Downey is a Professor Emeritus at Olin College and Principal Data Scientist at PyMC Labs. He is the author of several books related to programming and data science, including Probably Overthinking It, Think Python, Think Stats, and Think Bayes. The idea behind these books is that if you know how to program, you can use that skill to learn other things. Allen has a Ph.D. from U.C. Berkeley and M.S. and B.S. degrees from MIT. He has taught at Olin College, Colby College and Wellesley College.
AI导读
核心看点
  • 以Python为载体,培养计算机科学家的思维方式
  • 涵盖函数、递归、数据结构及面向对象设计基础
  • 强调问题识别与逐步调试的编程开发方法论
读者共识
  • 公认的最佳编程思维入门教材,非单纯语法书
  • 对零新手友好,但对有经验者略显单薄
  • 免费获取且更新及时,性价比极高
精彩摘录
  • "For some people, programming and debugging are the same thing. That is, programming is the process of gradually debugging a program until it does what you want. The idea is that you should start with a program that does something and make small modifications, debugging them as you go, so that you al"
  • "The final version of the function doesn`t display anything when it runs;it only returns a value.The print statements we wrote are useful for debugging,but once you get the function working,you should remove them.Code like that is called scaffolding because it is helpful for building the program but "
  • "If you were really thinking like a computer scientist, you would have recognized that uses_all was an instance of a previously-solved problem,and you would have written:"
  • "This is an example of a program development method called problem recognition,which means that you recognize the problem you are working on as an instance of a previously-solved problem,and apply a previously-developed solution"
  • "Every time a funtion gets called, Python creates a new [function frame], which contains the function's [local variables and parameters]."
  • "It is important to distinguish between operations that [modify] lists and operations that [creat] new lists."
  • "A [hash] is a function that takes a value (of any kind) and return a integer. Dictionaries use these intergers, called [hash values] to store and look up key-value pairs."
  • "for [instances], the default behavior of the == operator ist the same as the is operator; it checks [object identity], not [object equivalence]."
用户评论
mark
一晚上水完了。对于有基础的人来说这本书太过简单,对于入门的人来说它又不够系统
在https://codewithmosh.com上听了python programming for developer,才发现这本书作为入门书的很多不足。
Scratched the surface, and it's even itchier.
一本 Python 入门的书。我看此书的主要目的是用来提高自己的英语阅读水平。
蛮经典的书,每周练习都是这本书里抽出来的
Introductory and essential tool book for Python, used as reference for Darcy's course "Data Programming with Python". Good for searching certain context, not for systematic study.
十分萌新友好,里面的案例都挺有意思的而且也很容易理解,唯一缺点就是不够系统,对于一个系统框架学习法的人来说有点过于实例导向了(不过这也是本书适合萌新的优点)
热诚
下载
收藏