This is true as the above derivation for a and b of opposite parity is an if and only if statement.
这是正确的,因为上面对a和b 的奇偶性的推导是一个当且仅当命题。
Within the if statement, add this code
在if 语句中,添加下列代码
There are two main if statement blocks.
有两个主要的if语句块。
Within the empty if statement, add this line
在空白的if 语句中,添加下列代码
Listing 5. Example syntax for an if statement.
清单5.if语句语法示例。
Listing 4. The basic syntax for the if statement.
清单4.if语句的基本语法。
You could do that using an if statement (see Listing 12).
应该使用if语句进行此工作(请参见清单12)。
This little piece of code shows the conditional if statement.
这一小段代码显示了条件型if语句。
Do we put parentheses around the condition of an if statement?
if语句里的条件加括号了么?
Lisp also handles conditional constructs such as the if statement.
Lisp也处理条件结构,如if语句。
Fortunately, Python provides a simple extension to the if statement.
幸运的是,Python提供了if语句的一个简单扩展。
Close the if statement, file loop, SFTP connection, and SSH session.
结束if语句、文件循环、SFTP连接和SSH会话。
The if statement on line #1 compares the values of variables a and b.
第 1行上的if 语句将比较变量a和b的值。
The first if statement breaks the recursion if the list is empty, returning zero.
第一个if 语句在列表为空的情况下中断递归,返回零值。
This time the variable I becomes 125, and the first if statement evaluates False.
这次变量i变成了125,并且第一个if语句计算为False。
Then you use the conditional if statement to check the return code of the command.
然后,您使用条件型if语句,以检查该命令的返回代码。
Two threads can get inside of the if statement concurrently when instance is null.
当instance为null时,两个线程可以并发地进入if语句内部。
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所示。
This restriction is accomplished by using an appropriate if statement with a continue statement.
此限制通过使用适当的if语句和continue语句来完成。
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语句正文中希望保留的不变量的注释。
应用推荐