elif
- 网络否则如果
-
This example includes only one elif statement , but in practice you can include as many as the program needs .
本例只包含一个elif语句,而实际中可根据程序需要包含任意多个。
-
And then it has a strange thing called ELIF , which is simply short for else / if in a second test .
然后代码做了一个奇怪的,叫做ELIF的事情,也就是else/if的简写,这是第二个测试。
-
The elif statement is very convenient .
elif语句非常方便。
-
Although it isn 't the optimal solution , multiple elif statements can be used to mimic the switch case statement present in some other languages .
尽管它不是最优的解决方案,但是多个elif语句可以用于模拟其他一些语言中的switchcase语句。
-
The expression used in the if statement ( and in the elif clause and the while loop discussed later in this article ) can be as complex as necessary .
if语句(以及本文后面讨论的elif子句和while循环)中的表达式可以很复杂。
-
However , generic functions are much better ; generic functions will order themselves from more to less specific so there is no question of putting an elif in the wrong place .
然而,使用通用函数会更好;通用函数自己就会有些或多或少的特性,因此不会在错误的地方使用elif。
-
Reading this novel , I was reminded of a passage in Elif Batuman 's lovely nonfiction book , " The Possessed " ( 2010 ) .
读这本小说的时候,我想起艾丽芙·巴图曼(ElifBatuman)可爱的非虚构作品,2010年的《附体》(ThePossessed)。
-
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”语句之后的行。