"If a person,for example, from Korea is brought in to the United States under false pretenses and then forced into prostitution, very much that place where the prostitution occurs is within,then, the Korean community in the United States."
VOA: special.2010.06.14
So if you wanna do something conditionally, you generally needs to ask the question, is the following true or false.
假如想在一定条件下做一件事情,你需要判断下这个条件,来看看条件是真还是假。
false It's going to return true if it's a PAIL-indrome and false if it's a PAL-indrome. And it says true. Now maybe you're bugged by this.
如果不是会问的话则是,返回的是真值,那么你可能会觉得这个很烦。
"If a person for example from Korea is brought in to the United States under false pretenses and then forced into prostitution very much that place where the prostitution occurs is within the Korean community in the United States."
VOA: standard.2010.05.24
Shelly Kagan But if neither of us is Shelly Kagan, then the simple original personality theory was false.
但如果我们都不是,那最初的人格理论就会被证明是错误的。
If you're not updating some variable by incrementing it or decrementing it -- if you're not changing anything, presumably the conditions are never going to evaluate to false or the opposite, so you're just going to have an infinite loop, which might be your goal, but odds are it's not.
如果你不通过增加或减少它来改变一些变量,-如果你不改变什么,大概那个条件永远不会变成错误的,或相反的,所以你将得到一个无限循环,那可能是你的目标,但可能也不是。
If that's what people mean when they say everyone dies alone, then that's clearly false as well.
如果这就是人们说的,人都是孤独而死,这显然就是错误的。
swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
This is just a little inelegant and so one of the things we'll introduce early on is this idea of abstraction or design whereby if you wanna represent the ideas of 0 and 1, true or false, well, let's give them a synonym like true or false.
这么说有点粗野,我要接着讲的是这种抽象的思想,或者用这个来描绘设计出,真和假的思想,我们可以给真假各指定一个同义词。
And if it is,all I can say is, again,it just seems to be false.
即便是这样,我还是能说,这看上去还是错的。
And of course, if that's true, then premise three is false.
当然了,如果我听说的是真的,那前提三就是错的
If it's false, it just breaks there.
如果条件不成立,它就在那里中断。
So if that's what the claim means,it's false.
所以如果这就是对其的诠释,那它就是错的。
And that shows you one other nice little thing we want to do, which is if I look in this code notice I set up a variable up here called false Solution Found, initially bound to false.
这显示了我们想要做的另一件事,那就是我在这段代码中设置了一个,名为Solution,Found的变量,初始值设为。
So the take away is that if the user actually gives me two or three or four or whatever, this is this expression "is n less than 1" is going to evaluate to false if it's actually two or three or four or whatever.
所以先不管用户实际上给我,3,4还是其他数,这个表达式,“是否n小于1“将被评估为错误的,如果输入额是2,3,4或其它的数。
So in other words, if thankful is still false at this point, it means this condition did not work out very well, and so I'm going to do this block of code again.
换句话说,如果thankful在这时候还是false值,这表示这个条件没有实现地很好,所以我将再次去处理这段代码。
应用推荐