• A method consists of a set of program statements that have been collected together and given a name.

    方法包含了集中在一起的程序语句的集合,并给予它们一个名字。

    youdao

  • This article has introduced three Python program statements: the if statement, the while loop, and the for loop.

    本文介绍了三种Python程序语句:if语句、while循环和for循环。

    youdao

  • Notice how the program statements in Listing 3 that extend over more than one line are indented to improve readability.

    注意清单3中扩展到多个行的程序语句是如何缩进以改善可读性的。

    youdao

  • A compound statement consists of a flow control instruction, followed by a colon character (:), followed by a block of program statements.

    一个复合语句包括一个流控制指令,后跟一个冒号(:),然后再是一个程序语句块。

    youdao

  • Sometimes, however, it's desirable to place multiple program statements on a single line -- when you're initializing variables, for example.

    然而,有时候需要在一行放多个程序语句,例如初始化变量时。

    youdao

  • 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时执行一个程序语句块。

    youdao

  • 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时应该处理的程序语句块。

    youdao

  • 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时执行的程序语句块。

    youdao

  • Up to this point, you've seen how the if statement can be used to execute one of two blocks of program statements, depending on the value of a particular Boolean expression.

    至此,已经看到了if语句可以如何用于根据一个特定布尔表达式的值,来执行两个程序语句块中的其中一个。

    youdao

  • The Python interpreter, at its simplest level, operates in a similar manner, starting at the top of a program and sequentially executing program statements in a linear fashion.

    Python解释器在其最简单的级别,以类似的方式操作,即从程序的顶端开始,然后一行一行地顺序执行程序语句。

    youdao

  • The Python interpreter, at its simplest level, operates in a similar manner, starting at the top of a program and sequentially executing program statements in a linear fashion.

    Python解释器在其最简单的级别,以类似的方式操作,即从程序的顶端开始,然后一行一行地顺序执行程序语句。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定