It took him several weeks to learn how to string the crystals, and how to separate them so they would look nice.
VOA: special.2009.05.18
Let me go ahead and -- oh, that's nice, someone learned how to send right messages on the cloud. All right.
让我们继续--哦,那不错,有人学会了,怎样在云中发送正确的消息,好的。
But it is a very handy way of thinking about, not just how to program, but how to break problems down into nice sized chunks.
但是它确实是一种很方便的思考方式,不仅仅限于编程序,在将程序分解为小部分时也很有用。
There's a whole bunch of blocks that we'll look at in more fun detail on Friday but I'm going to pick the easiest one here and I'm going to type Hello CS50 in this string, "Hello CS50", zooming in say how nice the puzzle pieces are nicely interlocked?
今天我们看到的各种图块,到下周五我会仔细讲解其中的精妙之处,但今天我只想举一个最简单的例子,我要在这儿键入字符串,放大窗口,然后看看这漂亮的图形和文字,是如何美妙地连结在一起的?
A horse-drawing carriage in snowfalls that cause tires stick out of control with drivers gently toddles the ground and makes a nice pattern of black and white. That's how it used to be done, because he's a myth maker.
比如一辆马车在雪地上前行,但车轮松动,使马车夫不得不在雪地里慢条斯理地行进,这样的黑白画面塑造了很好的形象,这是他以前的做法,因为他是个创造神话的人,他说。
And Charles Darwin actually, who was an astute observer of human behavior, tells a nice story to illustrate this: how "a native touched with his finger some cold preserved meat and plainly showed disgust at its softness whilst I felt utter disgust at my food being touched by a naked savage though his hands did not appear dirty."
达尔文,对人类行为观察入微,他有一个故事很好地解释了反感:,“一个土著用手指碰冷腌肉,那种软软的质地让他感到很反感,而让我感无无比反感的是我的食物,被一个没穿衣取的土著碰了,虽然他的手不脏“
All right. So it's fun, and I got a little bit of applause out of it, which is always nice for me, but I also showed you how to think about it recursively.
好,挺有趣的,我也得到了一点掌声,这让我挺高兴的,但是我想让大家明白,怎么用迭代的思想来解决这个问题。
应用推荐