• You aren't limited to passing a sequence directly into the constructor; you can also pass a variable that holds a tuple or a string into the list constructor.

    不仅能够序列直接传递构造函数,可以拥有元组字符串变量传递list 构造函数。

    youdao

  • You can create a tuple by simply assigning a sequence of objects, separated by commas, to a variable (see Listing 5).

    只需变量分配逗号分隔对象序列,就可以创建一个tuple(参见清单5)。

    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

  • The following example shows how to loop over a sequence, and how to use a tuple pattern instead of a simple variable.

    下面示例演示如何循环一个序列以及如何使用元组模式代替简单变量

    youdao

  • The following example shows how to loop over a sequence, and how to use a tuple pattern instead of a simple variable.

    下面示例演示如何循环一个序列以及如何使用元组模式代替简单变量

    youdao

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

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

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