The result is an else if statement, which is shortened to elif, as demonstrated in Listing 6.
结果是一个else if语句,简写为elif,如清单6所示。
If the Fed doesn't actually announce new bond purchases, investors will scour its post-meeting statement for hints that it might do that or something else in the future.
如果美联储并没有宣布新的债券购买措施,投资者将从联储会议的会后声明里寻找其可能在未来采取该措施或其它计划的蛛丝马迹。
Likewise, you might want to add assertions to else conditions in if blocks, where conditions are assumed, or to default cases of a switch statement, which should never be reached.
同样,您可能希望向if块中的else条件添加断言,这里已经设置了该条件,或者向switch语句中的缺省情况中添加断言,使缺省情况永远不可能到达。
The if statement supports an optional else clause that indicates a block of program statements that should be processed if the Boolean expression evaluates False.
if语句支持一个可选的else子句,指示当布尔表达式计算为False时应该处理的程序语句块。
The solution provided is remarkably simple: you add an extra if statement to the else clause.
提供的解决方案非常简单:给else子句添加一个额外的if语句。
The while loop, as was the case with the if statement, supports an optional else clause containing a block of program statements executed when the expression is False.
while循环与if语句一样,支持一个可选的else子句,其中包含一个当表达式计算为False时执行的程序语句块。
If none of the conditions are true, it will execute the "else" action, if one is present, and then continue executing lines following the entire "if, elif, else" statement.
如果没有条件为真,则将执行“else ”操作,如果有一个条件为真,则继续执行整个“if,elif, else ”语句之后的行。
The if|then|else statement in XQuery lets you choose a bar graph based on testing for the $hours variable being greater than 40.
XQuery内的 if|then|else语句的作用是根据 $hours变量的值是否大于 40 来选择一个条形。
At a given if-then-else statement, the if part is the path that was executed.
对于给定的if - then - else语句,if部分就是被执行的路径。
To help with this, you can create your own custom if statement that added the "then" and "else" keywords. It would look like this.
为了帮助他们理解代码,可以创建定制的if语句,添加“then”和“else”关键字。
In order to apply the ordering on all the columns, we will need to add them to the if-then-else statement.
为了对所有列应用排序,需要把它们添加到if - then - else语句中。
If Teng fails to do so, then he should either withdraw his statement and apologise or else be forever branded as a liar.
如果丁福南拿不出来,那么他应该撤回言论,马上道歉,不然的话,他会一辈子被人们讲成“骗吃”。
If Teng fails to do so, then he should either withdraw his statement and apologise or else be forever branded as a liar.
如果丁福南拿不出来,那么他应该撤回言论,马上道歉,不然的话,他会一辈子被人们讲成“骗吃”。
应用推荐