中英
什么是迭代器
  • 翻译

What is an iterator

以上为机器翻译结果,快速获取精准的人工翻译结果,建议选择有道人工翻译

  • 双语例句
  • 1
    幸运的,由于所有常见的内置类型自动产生它们的迭代,所以python程序员不需要知道这里发生了什么
    Luckily, Python programmers do not need to know what is happening here, since all the familiar built-in types produce their iterators automatically.
  • 2
    实际上,现在字典里有. iterkeys 、. iteritems和. itervalues方法来产生迭代;首要的在新的习惯用法for key in dct:中使用了什么
    In fact, now dictionaries have the methods.iterkeys ,.iteritems , and.itervalues to produce iterators; the first is what gets used in the new idiom for key in DCT:.
  • 3
    实际上,为序列编制索引可能最常用的序列操作——究竟为什么迭代上无法使用索引呢?
    In fact, indexing into a sequence is probably the most common thing you ever do with a sequence — why on earth does it fall down so badly on iterators? For example.
查看更多