This textbook is very detailed and it may be-- I've had some reaction by students-- more than you wanted to know.
这本教材编写得非常详细,也许会,我听到过许多学生的反馈,涵盖面实在是太广了
I've always wanted to teach for a while, yeah. So you know,
我一直希望能教学一段时间。
And yeah, I know you know how to do it, but let's think about what might happen if I wanted to do that.
对,我知道你们知道该怎么做,那么让我们看看如果我,想要完成的话会发生什么。
Well let's see. My fall back is, I could just do linear search, walk down the list one at a time, just comparing those things. OK. So that's sort of my base. But what if I wanted, you know, how do I want to get to that sorted list? All right?
我只能做线性搜索了,一次遍历一遍列表,一个一个比较,但如果我想要,那怎样得到有序的列表呢?,现在的一个问题是,我们排序之前?
I wanted to show you that, so, first thing I'm going to do is say, all right, I know I'm going to need square root in here, so I'm going to, in fact, import math.
我们可以开始完成这个方法了,我想让你们看到完成这个方法的过程,第一件事情就是,我们在这儿需要一个求平方根的方法,实际上我将引入math包。
应用推荐