流程控制语句(Flow Control Statement) 虽然case语句中的break是可选的,但在绝大多数情况下,如果没有break,程序的逻辑就会发生错误,因此,通常情况下都需要加上brea...
基于30个网页-相关网页
The simplest flow control statement is the if statement, whose basic syntax is demonstrated in the pseudocode shown in Listing 4.
最简单的流控制语句是 if 语句,它的基本语法在清单 4 中的伪代码中演示了。
The second type of flow control statement in Python is the while loop, which executes a block of program statements while an expression evaluates True.
Python中的第二种流控制语句是while循环,它在一个表达式计算为True时执行一个程序语句块。
A compound statement consists of a flow control instruction, followed by a colon character (:), followed by a block of program statements.
一个复合语句包括一个流控制指令,后跟一个冒号(:),然后再是一个程序语句块。
应用推荐