How to Think Like a Computer Scientist: Learning with Python

Allen B. Downey, Jeffrey Elkner, Chris Meyers

出版时间

2002-01-04

ISBN

9780971677500

评分

★★★★★
书籍介绍
这不是一本教你快速上手Python语法的工具书,而是一套训练思维方式的方法。全书的核心是
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]."
用户评论
不知道到底是讲Python还是讲cs的
直接读Appendix就好了.
很浅显, 适合入门..副标题有点大了.
变量定义在C/C++都会与位,地址连接,所以都和硬件结合;python函数定义和参数结合,函数调用和变量结合
MIT的教材,目前已用于南方科大的CS课程中
还是以前看的Python电子书籍。
用了python将近一年看的此书,虽说大部分基础已经会了,但是看之前感觉一定能有查漏补缺的地方,补充我基本概念理解不到位的地方。看完果然收获不小,不过也说明py还是不太好,哈哈。前面基本没学到啥,后面关于class的几章有不少启发,整体感觉不如hands-on那本那么容易入门,不过也还是属于入门图书
cs glossy 入门经典
目前为止最喜欢的风格。。很喜欢 _(:3」∠)_
EdX上某门课的参考教材,如果把这本书当成python入门书,会觉得写得太浅。但正如题目所表明的,这本书的真实价值在于引导读者建立正确的思维方式。重读书中自己已经学习过的概念,依然会有新的收获和启发。第12-16章非常适合为OOP打基本功。
下载
收藏