""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.
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 always have a working program.
For example, Linux is an operating system that contains thousands of lines of code, but it started out as a simple program Linus Torvalds used to explore the Intel 80386 chip. According to Larry Greenfield, “One of Linus’s earlier projects was a program that would switch between printing (查看原文)
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 ... (查看原文)
对于一个自学程序设计的入门者而言,他需要一本什么样的书呢?我认为标准有以下三个: 第一,介绍足够用的知识。这一点看似简单,但是却不易掌握,像许多人推荐的 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...
(展开)
1 有用 Terry Chen 2012-08-19 09:23:58
本书优点是生动有趣,适于入门者阅读。但平心而论在 Python 和 CS 方面都不够深入,不少地方没有引导读者思考而是过早给出代码,而且结构稍显混乱。不过考虑到本书给我的帮助,还是给出四星的评分吧。
0 有用 玄之 2012-07-24 19:08:05
這是美國的高中教材。差距就是這麼一點一點形成的。
0 有用 凝霜 2012-05-02 21:09:56
简洁明了,初学者入门经典。
0 有用 O(1) 的小乐 2011-11-19 12:59:45
MIT一个比较简单的课程的入门书。。没事看着玩撒
0 有用 acel 2010-07-15 13:12:03
很浅显, 适合入门..副标题有点大了.