go top

有道翻译

yield generator

收益率发电机

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • But if a return is encountered, it causes the produced generator to raise a StopIteration exception rather than yield further values.

    但如果遇到return,它导致产生的生成器抛出StopIteration异常,而不是进一步生成值。

    youdao

  • A generator "returns" with the new keyword yield, but "remembers" the exact point of execution where it returned.

    生成器“返回”时带关键字yield,但“记住”了它“返回”的所有确切执行位置。

    youdao

  • Every yield encountered becomes a return value for generator's.next method. Let's look at the simplest generator to make things clear.

    遇到的每个yield都成为生成器的. next方法的返回值。

    youdao

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

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

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