""How to Think Like a Computer Scientist"" is an introduction to programming using Python, one of the best languages for beginners. This is a Free Book -- you can download it from thinkpython.com. But if you would like to make a contribution to this project, you can do it by buying a hardcopy or paying to download the electronic version here. Thank you!
作者简介
· · · · · ·
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.
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 is not part of the final product.
When you start out,you should add only a line or two of code at a time.As you gain more experience,you might find yourself writing and debugging bigger chunks.Either way,incremental development can save you a lot of debugging time.
The key aspects of the process are:
1.Start with a working program and make small incremental changes.At any porint,if there is an error,you should have a good idea where it is.
2.Use temporary variables to hold intermediate values ... (查看原文)
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: (查看原文)
对于一个自学程序设计的入门者而言,他需要一本什么样的书呢?我认为标准有以下三个: 第一,介绍足够用的知识。这一点看似简单,但是却不易掌握,像许多人推荐的 A Byte of Python,内容就明显过少了,而处于另一个极端的 Learning Python 篇幅超过一千页,又明显超出入门者...
(展开)
其官网上如是说: 最开始(2002年),以”How to Think Like a Computer Scientist: Learning with Python“的名称在Green Tea Press出版。2008年重印了一次。 http://book.douban.com/subject/1481058/ 后来(2009年),以”Python for Software Design: How to Think Like a...
(展开)
这本书是我在来来回回的地铁上看完的,很紧凑,很短小,很易读。这本书是很好的Python入门书籍,也是很好的编程与计算思想入门的书籍,而作者的编排也是遵循渐进的,并且偶然提出的问题(如在讲解string与操作符提出的“Can you think of a property that addition has that str...
(展开)
0 有用 零度调频 2010-03-10 17:35:04
太基础,和think无关!
0 有用 hotcat 2012-02-19 21:00:50
直接读Appendix就好了.
1 有用 阅微草堂 2016-01-10 15:45:25
变量定义在C/C++都会与位,地址连接,所以都和硬件结合;python函数定义和参数结合,函数调用和变量结合
0 有用 cy 2008-01-19 19:11:58
睡醒没事就看一章, 差不多快看完了
1 有用 Terry Chen 2012-08-19 09:23:58
本书优点是生动有趣,适于入门者阅读。但平心而论在 Python 和 CS 方面都不够深入,不少地方没有引导读者思考而是过早给出代码,而且结构稍显混乱。不过考虑到本书给我的帮助,还是给出四星的评分吧。