Just to drive home one more reason why I don't want to have changes to the values other than through pre-defined things.
注意如果我这么做的话会发生什么,我可以说我想要改变,某个特定点的半径。
And the change was, that in this case, if I'm doing a single search, I've got a choice.
这个改变是,在这种情况下,如果我要做单一检索,我就面临一个选择。
Now, if I want to change those quantities; change the temperature, change the volume, how will it change?
如果我现在打算改变这些量;,改变温度,改变体积,它会如何改变?
Once again I wouldn't be teaching this class, if I didn't change is possible.
如果我认为没有改变的可能,就不会教这节课。
I know this might be changing the game a little bit, but if you ever expected to play the same game with the partner you have more.
我知道这可能会稍微改变点这个博弈,但是如果你认为以后你还会,和你的对手进行相同博弈
A bold claim would say, "The facts about death, if I thought about them, would change my behavior, but not because it would give me a reason to change my behavior-- " simply because it would influence my behavior."
一个大胆的观点会认为,“关于死亡的事实,如果我考虑了它们,就会改变我的行为,但不是因为它给了我改变行为的理由-,只是因为它影响了我的行为“
They may fluctuate wildly, but if I look at enough stocks, the average should be right around 100.
他们可能会有很大的改变,但是如果我看过足够多的股票,平均值还是应该在100左右。
It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
If I now say, I'm going to go ahead and change the radius of this, something, my polar form did it right, but what happened to the Cartesian form?
如果我现在说,我要去改变这里的半径,一些这样的操作,我的极坐标形式,进行了正确的改动?
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
If I change the composition of the mixture?
如果我改变混合物的组分,会怎么样?
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
What if I don't change the value of that variable inside of the code?
那么如果在循环内部,我不改变这些变量的值会怎么样?
I didn't have anything in there that says, if you change one of these values, other values depend on it, and I want to make that change to it.
这样就对了,因为我在代码里面,没有任何的东西说,如果我改变了其中的一个值。
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
应用推荐