Think Python

Allen B. Downey

出版时间

2012-08-23

ISBN

9781449330729

评分

★★★★★
书籍介绍
《Think Python》最容易被书名误导——它看起来像一本Python语法手册,实则意在教人
作者简介
Allen Downey is an Associate Professor of Computer Science at the Olin College of Engineering. He has taught computer science at Wellesley College, Colby College and U.C. Berkeley. He has a Ph.D. in Computer Science from U.C. Berkeley and Master’s and Bachelor’s degrees from MIT.
AI导读
核心看点
  • 专为零基础设计,循序渐进讲解编程核心概念
  • 强调像计算机科学家一样思考,而非仅学语法
  • 通过大量练习与调试技巧,培养工程思维习惯
读者共识
  • 被誉为最好的编程入门书之一
  • 内容精炼,避免陷入繁琐语法细节
  • 适合快速入门,不适合进阶学习
精彩摘录
  • "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]."
目录
Preface v
1 The way of the program 1
1.1 The Python programming language . . . . . . . . . . . . . . . . . . . . . . 1
1.2 What is a program? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 What is debugging? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

显示全部
用户评论
很喜欢作者顺序渐进的讲述风格,会很适合初学者
适合没有接受过正规编程训练又想学习python的人
非常好的解释基本数据结构的书,github上有全部的代码
把简单问题复杂化不值称道,把复杂问题简单化方显水平。可以读出作者的认真与诚意。
A nice quick read. The book covers some grounds that I have never covered through googling and learning, and its style makes it easy to read through. Recommended for beginners like me.
适合快速入门,很快能翻完,然后就可以看CS61A的composing programs了。
讲述方式很适合我,用来入门最佳
前几章都认真的读了,后面几章跳读或者略读了,感觉入门还不错,起码大概的function用法知道了,下面就靠刷题实践了。
Python的官推书之一
会给别人一种编程很容易的错觉
求书
收藏