This is true as the above derivation for a and b of opposite parity is an if and only if statement.
这是正确的,因为上面对a和b 的奇偶性的推导是一个当且仅当命题。
You could do that using an if statement (see Listing 12).
应该使用if语句进行此工作(请参见清单12)。
Lisp also handles conditional constructs such as the if statement.
Lisp也处理条件结构,如if语句。
The if statement on line #1 compares the values of variables a and b.
第 1行上的if 语句将比较变量a和b的值。
This time the variable I becomes 125, and the first if statement evaluates False.
这次变量i变成了125,并且第一个if语句计算为False。
Thinking back to basic shell scripting logic, an if statement consists of if, then, and fi.
回忆一下基本的脚本编程逻辑:if语句由if、then和fi组成。
It's a safe bet that in a script this small, the error may be in the actual if statement.
对于这个小脚本,可以很有把握地猜测错误可能出现在实际的if语句中。
Although you can do everything with a single XPath if statement, the code will be unwieldy.
虽然您可以使用一个XPathif 语句实现任何操作,但是代码显得有些笨拙。
The result is an else if statement, which is shortened to elif, as demonstrated in Listing 6.
结果是一个elseif语句,简写为elif,如清单6所示。
Say we wanted to write a more verbose version of the if statement than the one Scheme offers.
假设我们想编写一个比Scheme 提供的版本更详细的if 语句版本。
The solution provided is remarkably simple: you add an extra if statement to the else clause.
提供的解决方案非常简单:给else子句添加一个额外的if语句。
Another new feature in Eclipse Galileo is the ability to generate blocks for the if statement.
EclipseGalileo中的另一个新特性是为if语句生成代码块的能力。
As an example, let's examine the parsing of an if statement whose syntax look like the following.
作为一个示例,让我们来解析一个if语句,它的语法如下所示。
The problem isn't entirely in the if statement, but mostly in the amount of code in the if statement.
问题并不完全归结在if语句上,if 语句中代码的数量才是最关键的。
The case statement is another conditional statement that you can use in place of using an if statement.
case语句是另一种条件型语句,您可以用该语句来替代if 语句。
The if statement, which executes a particular block of statements based on the result of a test expression.
if语句,它基于测试表达式的结果执行一个特定的语句块。
By the way, notice the comments asserting what invariant we expect to hold in the body of each if statement.
顺便注意一下断定每个if语句正文中希望保留的不变量的注释。
The last if statement is never executed and is used to demonstrate how the pass statement is coded in a program.
最后一个if语句永远不会执行,只是用于演示如何在程序中编写pass语句。
Even the most familiar language features are supercharged in Scala, let's have a look at the lowly if statement.
即使是最常见的语言特性在Scala里也被增强了。让我们来看看简单的if指令。
This article has introduced three Python program statements: the if statement, the while loop, and the for loop.
本文介绍了三种Python程序语句:if语句、while循环和for循环。
If you look at the configuration file, you can see that there are actually two prompts listed in an if statement.
如果你仔细看一下配置文件,你会发现实际上在if语句中有两个提示符。
As a result, the body of the second if statement is executed when the value of the variable I is evenly divisible by 125.
因此,当变量i的值能被125整除时执行第二个if语句体。
It can recognize something as a local variable, instance variable, expression, if statement - more than 60 language elements.
它可以识别象局部变量、实例变量、表达式以及if语句等六十多种不同的语言元素。
That implies we'd have to change the final if statement considerably to allow for user name only, but only in the case of SSO.
这意味着必须修改最后一个IF 语句,允许只有用户名的情况,但是这个逻辑只适用于 SSO。
For example, if you have a complicated if statement, some branches may modify one variable while others modify other variables.
例如,如果您拥有一个复杂的if语句,有些分支可能会修改某个变量,而其他分支可能会修改其他变量。
The simplest flow control statement is the if statement, whose basic syntax is demonstrated in the pseudocode shown in Listing 4.
最简单的流控制语句是if 语句,它的基本语法在清单 4中的伪代码中演示了。
And "Discover Python, Part 5" introduces the concept of compound statements in Python, and the if statement and the while loop.
“探索python,第5部分”介绍了Python中复合语句的概念,并介绍了if语句和while循环。
The return keyword is optional here and it is rarely used, except when returning out of the middle of a block (e.g., in an if statement).
return关键字在这里是可选的,而且很少被用到,除非在一段代码中间返回(比如在一个if语句块中)。
Often, these two statements are placed in the body of an if statement so that the continue or break action is triggered by a special condition.
这两个语句通常放在if语句体中,以便由一个特殊的条件触发continue或break操作。
The former three hooks require little explanation, with one exception: the if statement in flitter_update determines whether versioning is enabled.
前三个钩子几乎不需要解释,但有一个例外:flitter_update中的if语句确定版本控制是否启用。
应用推荐