There's this notion of a Boolean value named after Mr. Bool, which is just a notion of true or false.
布尔值的概念是在布尔先生之后命名的,它是一个正确或错误的概念。
And, that's a good thing to know because if you come out with an answer that's somewhere near the diameter of the universe and it's supposed to be the diameter of an atom, then you will know that you probably made a mistake.
这是我们需要知道的,因为当你做一道题得到的答案,是宇宙的直径,而正确答案是原子直径时,你能很快发现你的错误。
OK. What happens if you actually have something that's both syntactically correct, and appears to have correct static semantics, and you run it?
好,当你的代码语法,没错误,并且也有正确的静态语义,你去运行它的时候会发生什么呢?
What will make a difference to our levels of wellbeing is if we have right vs. wrong expectations.
能影响幸福水平的,是我们的期望是正确还是错误。
It not only defeats wrong, but it creates right and it creates citizens who behave rightly.
它不仅抵御错误行为,还要树立正确观念,并且,培养出行为端正的市民
More generally, Chomsky suggests that the law of effect when applied to humans is either trivially true, trivially or uninterestingly true, or scientifically robust and obviously false.
更一般的来讲,乔姆斯基认为应用在人类身上的效果律,要么是无效且毫无意义的正确假说,要么就是稳定且明显的错误假说。
I want to derive the last result in another way, then I will stop, and that's pretty interesting because it tells you the use and abuse of calculus.
让我用其他方法解答最后一个问题,然后今天就到这 这是一个挺有意思的题,因为它展示了微积分的正确用法和错误用法
This is a true or false value.
这是一个正确或错误的值。
A little later we'll turn to the question of, well, if hedonism is not the right story, ? what else belongs on the list, or is it the right story?
过会,我们会转向探讨…,如果享乐主义是错误理论,名单上还有什么?它是不是正确的理论?
it's not as good as helping debug, sorry, that's the wrong way of saying it's not as good at catching some things before you run them, it is easier at some times in debugging as you go along on the fly.
它在帮助我们调试方面可能不是太优秀,对不起,这么说有点不正确,它在运行前捕捉错误,可能不是那么优秀,可能边运行边调试,会更容易一些。
The problems are set up so that, if you start down the right path, it should be pretty straight-forward to work it through If you start down a plausible but incorrect path, you can sometimes find yourself stuck in the weeds somewhere, and we want to bring you back in.
问题提出了,如果你从,一开始就走正确的道路,解决的途径,就一目了然了,如果你走上一条貌似正确但实际错误的道路,你会在某时某刻,发现自己陷入泥沼,于是我们就会把你拉回来。
I'm going to go there initially, so I can move this over here, so I can get the base part of that over there, I want to put that one there before I put this over here, finally I get to the point where I can move the bottom one over now I've got to be really careful to make sure that I don't cover up the bottom one in the wrong way before I get to the stage where I wish they were posts and there you go.
我要先把其他的放到多余的柱子上,然后把最底下的放到目标柱子上,我要在把除了最底下的圆盘,其他的圆盘挪过来之前,把最下面的圆盘放在这儿,因此我得出了最下面的盘子,应该如何摆放的结论,当我没得到其他盘子的正确摆放位置的时候,要很小心的确认没把错误的盘子,放在最下面的盘子上面。
It's a little more readable because I'm using a Boolean value that tells me, the programmer, this is true or this is false.
它更具有可读性一点,因为我使用了一个bool值,它告诉我或程序员,这是正确的或这是错误的。
So in other words, if you terminate these lines early, if you terminate the four loop early, if you terminate an if condition early with that semicolon, the code may very well work; and this is a common source -- of frustration and conundrum because you don't -- because your code looks right and yet it's misbehaving, but that semicolon means stop looking for subsequent lines of related code.
换句话说,如果你用分号过早的终止了这些代码行,如果你过早地终止了那个for循环,如果如此,一个if条件,代码可能可以运行,这就是,挫折和问题产生的源头,因为你没有-,因为你的代码看起来是正确的,但是运行是错误的,那个分号的意思是,停止寻找后面相关的代码。
The problem is right versus wrong expectations.
问题在于正确和错误的期望。
Psychology is not just the study of disease,weakness,and damage it also is the study of strength and virtue, Treatment is not just fixing what is wrong; it also is building what is right.
心理学不仅是对疾病,弱点和伤害进行研究,它也研究优点和美德,治疗不只是修复错误;,同时也要塑造正确的东西。
应用推荐