If you want to make sure both conditions are true and they both have to be true for any code to be executed, use ampersand ampersand.
如果你想保证两个条件都成立,或者它们两个都必须为真值,才能执行一些代码,那就使用“&&“
So this program, if you run it based on intuition or little cheat sheets in front of you, what is this program ultimately going to do for me?
所以这个程序,如果你按照你的直觉,或你们面前的备忘单来执行它,这个程序最终会为我做什么?
Otherwise the test is always going to be true, we're going to go off here, but this would loop forever if I did that.
否则测试结果就会一直为真,我们需要离开这个测试,否则就会一直执行循环。
The typical example of dilution is: the board of directors has hired a CEO for the company and they want to motivate the CEO.
摊薄的典型例子是,董事会为公司雇用了一位首席执行官,他们想激励这位首席执行官
So what's going to happen here? If I'm inside this FOR, OK, and I'm running around, if I ever hit a place where this test is true, I'm going to execute that return, return that return returns from the entire procedure. OK? So the return comes back from the procedure.
那么这里发生了什么呢?,如果我是在这个for循环里面,我正在运行,如果我运行到test的值为真的地方,我就会执行,这个return将会返回整个程序的值,明白了吗?所以它将会从整个程序中返回值。
应用推荐