All I have to do then is correct that for the number of days in a year, so that's what I did.
接下来我只需要将它换算成年,我就是这么做的
That's what I did and worked out.
我就是这么做的,很有效果。
And I'm going to do this because, as Professor Guttag noticed to me, students seem reluctant to do this.
另外一件十分有用的事情就是去模拟代码,我之所以要这么做,是因为Guttag教授,提醒过我,说学生们不是很情愿来做这个。
This is me doing that.
我就是这么做的。
It's like I'm doing this, right?
我就是这么做的对不对?
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
All right. If you flip to the second side of your handout, you'll see that I have a piece of code there, that does this-- let me, ah, I didn't want to do that, let me back up slightly- this is the algorithm called search.
你可以看到实现这个功能的代码,让我,额,我不想这么做,让我们回来一点,这就是命名为search的算法-,我们来看看这个算法吧。
应用推荐