And just to look ahead a little bit, you could easily imagine that I might want to not just put a statement in there, what the specs are, I might want to put some constraints. Some specific things to check for, to make sure that you're calling the code right.
这不仅是抽象的概念还有规范的概念,我们再往前看看,你可以简单的想象得到,我不仅仅是想在这里加一个声明,这些规范说明中我还想加一些约束,我们要注意一些特殊的事情。
Before eating the last slice, you could check with your friends to make sure it's alright for you to delve in.
在伸手拿最后那片披萨前,你可以跟你的朋友确认下,你吃完最后一片有没有关系。
Or the company says, congratulations we're repurchasing 2% of your shares and here's a check for $5 to pay you for those shares.
或者公司说,恭喜您我们要回购,您股票的2%,以每股5美元的价格,付给您的支票
So, I have to check for that, but nine times out of ten there's not going to be a problem so now let's do this.
所以,我需要做一个检查,但是通过十有八九,这不会出现问题,现在我这样处理。
Nowadays, if you go to outer space, you can check for yourself that if you throw something out, it just goes on forever without your intervention.
现如今,如果你去了外太空,你可以向外抛个物体试试,如果你不打断它,它就会一直运动下去
Question: Doctor, before you perform autopsy ? did you check for a pulse?
问题,医生,在你开始解剖前,你检查了脉搏吗?
Well we get a check for the cockroach on that one don't we?
蟑螂符合这一点的,对吧
Two: check to see if this is the answer, if this is the thing I'm looking for.
是否是我们要找的元素,接着,如果不是。
Just a quick check and this is not for the camera, how many of you have seen Bertrand competition before?
我们迅速了解一下,这不是为了录影,你们谁之前学过伯川德竞争
And then it occurs to you that in the next room there's a healthy guy who came in for a check-up.
然后你突然想起,在隔壁病房,有个来做体检的健康人。
If that opportunity comes up for you maybe you want to check into the policies of how that works with the doctor situation now.
所以这还是很危险的,如果你们有拿诺贝尔奖的机会,你要先确认一下。
And so here do we see we can check for equality with zero.
然后这里我们可以检查与0等价的情况了。
So, I'm going to check for it myself.
所以,我要亲自检查它。
We get a check for the Cheetos as well, but only because we're trained to believe that one tastes good and the other one doesn't, because in different cultures it would be the reverse.
我们还是选奇多作为食品,但选择的原因仅在于,所受的教育,告诉我们它好吃,而蟑螂不好吃,在不同的文化中情况可能是相反的
Question: Did you check for breathing?
问题,你检查了呼吸吗?
The easy thing to do would be the following: start at the front end of the list, check the first element. If it's the thing I'm looking for, I'm done. It's there. If not, move on to the next element. And keep doing that.
从数组的第一个元素开始:,如果这是目标元素那么结束,如果不是的话就继续比较下面的元素,并一直这么比较下去,但如果,在某一点我发现我要寻找的数字。
应用推荐