As every time we introduce a new programming concept, we'll relate it back, as we have been doing consistently, to defensive programming.
我们每次介绍一个,新的编程概念的时候,就会和以前讲的联系起来,就和我们介绍防卫性程序设计一样。
So, every time I ride on the subway, it's kind of exciting for me.
所以,每次我坐地铁的时候,都很兴奋。
So, if every tenth time your dog brought you the newspaper you gave it hugs and treats; that's ratio.
每当你的狗为你拿十次报纸,你就抱抱它,给它奖励;,这便是比率强化。
We don't know what it's like to be dead, because every time we try to imagine it, we fail.
我们不知道死亡是什么样的,因为每次我们想象死亡,都无果而终。
One way to mark time is to imagine it carries a clock as it moves, and put markers every second.
标记时间的一种方法是,想像它带着时钟运动,并且每秒做一次标记
You can go ahead and use that equation, or you could figure it out every time, because if you know the total number of nodes, and you know the angular node number, then you know how many nodes you're going to have left.
你们可以直接用这个方程,或者每次都自己算出来,因为如果你们知道了总的节点数,又知道角向节点数,就知道剩下的节点数是多少。
But you don't want to have to run it a long time, every time you have a hypothesis.
但是你不必每次有一个假设,都要去运行很长时间。
So it's very difficult, but what I come down to is that you just have to place your energy on your breath, and every time you notice your awareness drifts to somewhere else, you have to recognize this drift and let it go.
因此这很难,但我总结的方法是,只需要把能量集中到呼吸上,每次注意力不集中,飘到别处时,要意识到意识的涣散,并放手不管。
Every time a product shows up it's bought and paid for, for the most part.
产品的每次出现都需要支付费用,在大多数情况下都是这样
It's that word "visit" that gets me every time.
每次读到“拜访“这个词我都觉得不舒服。
And they got in this habit of, every time they had a bright, happy text, they'd set this in one kind of mode or key-- a major mode--and every time they had a sad one, they'd set it in minor.
于是人们养成了这样的习惯,每当人们书写欢乐,愉悦的歌词时,他们就设定一个调式或调性,即大调,每当人们书写忧伤的歌词时,他们就定为小调
Not to harp on the mathematical features of this, but cubing, AX*X*X you know, if you're starting to do AX star, X star, X, every time you want to cube some value in a program, it just feels like this is going to get a little messy looking, if nothing else.
不要总是说这个的数学特性,但是体积,你们懂的,如果你开始做,在一个程序中,每次你想算几个数值的体积,感觉它就变得,有一点凌乱的,如果没有其他的。
Every time I use it, I'm creating a new instance, that's a different thing inside of memory.
我每次调用它,我就新建了一个类,这在内存中是个不同的事情。
The loop invariant what does the loop invariant mean? It says, here is a property that is true of this structure every time through the loop.
循环不变量是什么意思?,它是一个在结构体中,每次循环都为真的属性。
Every time I go near the podium, I find I'm drawn to it."
每次我走到讲台附近时,都会感到被它吸引"
OK, you say, come on, I've seen these all the time. Every time I type something into my program, it does one of these things, right?
好了,或者你要说,我总是能看见这些,每一次我在程序里输入一些内容的时候?
First of all, I'm very pleased when this happens, because I'm pretty confident that I can do this under duress, but I may not do it right every time.
首先,我非常乐意你们指出我的错误,因为虽然我对这些公式了如指掌,但我并不能保证每次都写对
The person who every time they sees you hates you, says they hate you and accompanies it with an obscene gesture-- after a while this person can't hurt you. Right?
一见到你就讨厌的人,他们说讨厌你,边说边做着鄙夷的手势-,但这些人并不会伤害到你?
if you don't want to use that, you can also derive it as we did every time, it should intuitively make sense how we got there. But the exams are pretty short, so we don't want you doing that every time, so we'll save the 2 minutes and give you the equations directly, but it's still important to know how to use them.
吸收的和发射的,如果你不想用公式,你也可以每次都向我们这样推导它,很直观的就能得到结果,但考试时间很短,我们不希望你们每次都推导,所以我们会直告诉你,让你节省2分钟,但知道如何应用它十分重要。
Now what I'd like to do, every time I find a divisor I'd like to gather it together. So I'm going to create a tuple of one element, the value of i.
那么我就会去创建只包含一个元素的元组,也就是这个除数了,然后,啊,很好,这里是加法重载的一个很糟糕的应用。
How could I possibly do it in sublinear time, I've got to look at least every element once.
我每个元素都至少得看一次,这就是我希望你们能够考虑的本质。
I find that every time we do our meditation on Thursday, I'm always running to make it, or something happened before I get there, I'm like "Oh my God, meditation!"
我发现每次我们周四,要冥想时,我总是匆匆赶过去,或者是到达之前发生一点事故,我就好像“天哪,要冥想!“
But wouldn't it be nice to just have a certain period of time every day when you didn't have to even have it be ? so much as a remote possibility?
但要是每天能有一段特定的时间,死亡对你来说,甚至连一个遥远的可能性都不是,那岂不是很好?
应用推荐