The result is an elseifstatement, which is shortened to elif, as demonstrated in Listing 6.
结果是一个else if语句,简写为elif,如清单6所示。
2
The ifstatement 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时应该处理的程序语句块。
3
The solution provided is remarkably simple: you add an extra ifstatement to the else clause.