• When I check the else clause, I see that I was calculating age based on the year only.

    在检查完else 子句之后,我明白我只是根据年来计算年龄。

    youdao

  • The solution provided is remarkably simple: you add an extra if statement to the else clause.

    提供的解决方案非常简单:给else子句添加一个额外的if语句。

    youdao

  • The else clause is never executed, so nothing is printed out until you explicitly use a separate print statement.

    else子句永远不被执行,所以直到显式使用 print 语句之前不会输出任何东西。

    youdao

  • The else clause would be modeled by adding another call arrow between the Teller class and the ImproperDepositException.

    可以通过在teller类和ImproperDepositException之间添加另一个调用箭头来为else子句建模。

    youdao

  • For a while loop, however, this means the code in the else clause is executed once, after the loop is terminated (see the pseudocode shown in Listing 7).

    但是对于while循环,这意味着在循环终止后,else子句中的代码被执行一次(参见清单7中的伪代码)。

    youdao

  • Once the code has iterated over all the elements in the tuple, it enters the else clause of the for loop, which prints out the value of the count variable.

    一旦代码已经迭代了tuple中的所有元素,它将进入for循环的else子句,打印count变量的值。

    youdao

  • Because there is rarely an explicit check on the invariants that are expected to be held in an else clause, it's a good idea to make that clear in your code.

    因为我们很少对else子句中希望保留的不变量进行显式检查,所以在代码中清楚说明该不变量是一个不错的主意。

    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

  • Ceylon also ensures (at compile time) that the switch statement contains an exhaustive list of instance tests or, at a minimum, an else clause to provide complete coverage.

    Ceylon还确认(在编译时)switch语句包含详尽的实例测试列表,至少包含else子句,从而提供完整的覆盖范围。

    youdao

  • Ceylon also ensures (at compile time) that the switch statement contains an exhaustive list of instance tests or, at a minimum, an else clause to provide complete coverage.

    Ceylon还确认(在编译时)switch语句包含详尽的实例测试列表,至少包含else子句,从而提供完整的覆盖范围。

    youdao

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

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

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