Originale-mail to me for new edition

 

Structured statements

 

Structured statements are built from other statements. Use a structured statement when you want to execute other statements sequentially, conditionally, or repeatedly.

·  A compound or with statement simply executes a sequence of constituent statements.

·  A conditional statement, that is, an if or case statement executes at most one of its constituents, depending on specified criteria.

·  Loop statements including repeat, while, and for loops execute a sequence of constituent statements repeatedly.

·  A special group of statements including raise, try...except, and try...finally constructions create and handle exceptions. For information about exception generation and handling, see Exceptions.

 

Topic groups

 

See also

Case statements

Compound statements

Control loops

If statements

Statements

With statements

 

 

译文

 

结构语句

 

结构语句由其他语句建立而来。当要顺序、有条件或重复执行其他语句时,可以适用结构语句。

·  混合语句或with语句只是简单地执行结构语句中构成语句的序列。

·  条件语句如ifcase语句,根据指定的条件,最多执行结构语句中的构成语句之一。

·  循环语句包括epeatwhilefor语句,重复地循环执行结构语句中构成语句的序列。

·  特殊语句组如raisetry...excepttry...finally等,其结构创建和处理了异常(exceptions)。有关异常产生和处理的信息,见异常

 

主题组

 

相关主题

Case语句

混合语句

控制循环

If语句

语句

With语句