So if you wanna do something conditionally, you generally needs to ask the question, is the following true or false.
假如想在一定条件下做一件事情,你需要判断下这个条件,来看看条件是真还是假。
Let me give you a few examples of how we can use this pattern in real life.
下面我们来看看如何在生活中使用这个句型。
First of all, having read in that value, I can check to see, is it of the right type?
首先,读一下这个值,我们可以来检查看看是不是正确的类型?
Let me go ahead and open up instead a more interesting graphical carnation--incarnation of this.
让我们继续来看看关于这个的,更有趣的图形化的演示---一个具体化的例子。
So if we think about, for example, this red line here, which energy state or which principle quantum number do you think that our electron started in?
我们来看看,比如这里的这个红线,它是从主量子数,等于多少的能级发出的?
Now let's look at what the present day holds the leading causes of death now and this is probably something that you'll also know.
我们再来看看如今的,主要死亡原因,这个你们大概也都知道
That turns out also to be true in this case, but let's just see.
这个例子可以证明,我们来看看
And before we do it, I should add one other thing: how, then, do we get these other notes up here, we get these other notes up here?
在此之前,我们先来看看这个,我们如何安排其它这些音符,放在这里吗
Let's look at some examples of where you might use "I've already" pattern.
下面我们来看看在什么情况下会使用这个句型。
Let's look at this pattern in a few different examples.
下面我们来看看这个句型的不同用法。
We started off talking about binary search, and I suggested that this was a log algorithm which it is, which is really kind of nice.
我告诉了你们这是一个对,数级的算法,这是很棒的,我们来一起看看这个算法到底做了什么。
OK, in fact if we look at this, if I say, print of p, it prints it out in that form.
好,实际上如果,我们来看看这个,如果我输入,p的显示。
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
OK. Now, that's a nice simple little test, let's look at a couple of other examples to get a sense of what this will do.
好,那么这是一个很好的小测试,让我们看看其他的一些例子,来明白这个主要用来做什么的。
It is just in general that's going to hold true, and that's what I want you to see.
这就是我想讲的,好,让我们来看看最后的这个例子。
If I look at the Cartesian, oh, I did have the Cartesian form, don't mind me while I mutter to myself here quietly.
如果我来看看这个笛卡尔,哦,我还没有笛卡尔形式,当我自言自语的时候,请大家别介意。
So, let's consider some people got it wrong, however, and let's see where that wrong answer might have come from, or actually, more importantly, let's see how we can all get to the correct answer.
我们来考虑一下为什么有些人做错了,然而我们来看看,这个错误的答案从何而来,或者事实上更重要的,我们来看看怎样才能都得到正确答案。
And I know there's a lot to talk about this competition, but let's just get into listening mode here and talk about how we can figure out what the correct electron configuration is for this ion.
我知道刚才关于这次比赛大家有很多话要聊,但是请大家先转换到听讲的模式,来看看如何才能弄清楚,这个离子正确的电子排布。
OK. So we're going to focus here.
那让我们来看看这个问题。
Let's try and figure out how to analyze this game.
我们来看看应该如何分析这个博弈
However many quotes I need.
来看看这个程序能不能运行。
For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?
对于后者来说,运行测试用例,对它会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?
Now the people in this poll were asked the same question and here's what they said, so 75% said that one reason is that it's more convenient, it's what people like to eat, it's heavily advertised, it's more affordable, people may not know which foods are healthy.
在这个调查中人们也被问到了这个问题,我们来看看他们的答案,75%的人说选择垃圾食品是因为更方便,合乎口味,广告的大力宣传,更便宜,人们可能并不知道哪些食物才是健康的
And let me comment that out, and let's go to this one.
让我们注释下它,让我们来看看这个例子。
In addition, if we compare this to the diameter of an atom, which is on the order of somewhere between one and ten angstroms, now we're seeing that, in fact, this wavelength is significantly larger than its environment.
另外,如果我们把它,与原子的直径相比,原子直径近似1到10埃米之间,我们现在来看看,事实上,这个波长比它所处的环境大很多。
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的算法-,我们来看看这个算法吧。
So let's look at this code for a second.
那么让我们来看看这个代码吧。
Let's see how this would play out.
我们来看看这个弹出来会是什么效果。
So, as they're very quietly handing out your class notes, let's think about what this bond is here, this boxed bond, is it a pi bond or a sigma bond?
在他们发讲义的同时,我们来看看这个键,方框里的这个键,它是sigma键还是π键?
So let's look at b search. All right?
那么让我们来看看b,search,这个方法?
应用推荐