• Functions like xrange are a bit "special" in being generator-like, but neither quite a real iterator (no.next method), nor a realized list like range returns.

    xrange这样函数与生成器类似的方面有些“特殊”,它们既不是真正的迭代器(没有.next方法),也不是实际的列表(比如range返回的列表)。

    youdao

  • You can utilize the generator either manually or as an iterator.

    可以手工或者作为迭代器来利用这个生成器

    youdao

  • Most frequently, however, you are likely to use a generator as an iterator, which is even more concise (and again looks just like an old-fashioned sequence).

    然而,更多情况下,可能将生成器作为迭代器使用这样更为简练(并且看起来只是一个老式的序列)。

    youdao

  • The only time an iterator would have a value itself is when you're implementing a generator that isn't actually associated with a container.

    唯一一次迭代器本身价值实现台发电机实际上容器相关联

    youdao

  • The only time an iterator would have a value itself is when you're implementing a generator that isn't actually associated with a container.

    唯一一次迭代器本身价值实现台发电机实际上容器相关联

    youdao

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

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

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