AN ITERATOR - 翻译成中文

在 英语 中使用 An iterator 的示例及其翻译为 中文

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
This function returns an iterator which will read equally-sized chunks from the buffer until all its contents have been consumed.
此函数返回一个迭代器,它将从缓冲区读取大小相同的块,直到其所有内容都被处理。
We have shown that you can create an iterator by calling iter, into_iter, or iter_mut on a vector.
我们已经展示了可以通过在vector上调用iter、into_iter或iter_mut来创建一个迭代器
Plain objects can't normally be iterated over, unless you have defined an iterator for it.
普通对象通常不能迭代,除非你已经为它定义了一个迭代器
In Python 2, file objects had an xreadlines() method which returned an iterator that would read the file one line at a time.
Python2中,文件对象有一个xreadlines()方法,返回一个迭代器,一次读取文件的一行。
In the statement for X in Y, Y must be an iterator or some object for which iter() can create an iterator.
在表达式forXinY,Y要么自身是一个迭代器,要么能够由iter()创建一个迭代器
Generators are a Python core language construct that allow a function's return value to behave as an iterator.
生成器是Python的一个核心语言构件,它能使函数的返回值表现为一个迭代器
Let's talk about consumers first, since you have already seen an iterator.
首先让我们来谈谈消费者,因为你已经看到一个迭代器
In the Range object, there are minimum and maximum values, while in Seq we see an iterator.
在Range对象中,有最小值和最大值,而在Seq中我们看到一个迭代器
Sequence unpacking also supports iterators: if you know an iterator will return N elements, you can unpack them into an N-tuple.
序列解包也支持迭代器:如果你知道迭代器将返回N个元素,则可以将它们解包为N元组:.
Note that it's not possible to use an iterator of promises to achieve the same result.
请注意,使用promises的迭代器不可能达到相同的结果。
Two common operations on an iterator's output are 1 performing some operation for every element, 2 selecting a subset of elements that meet some condition.
迭代器输出的两个常见操作是:1对每个元素执行一些操作;2选择满足某些条件的元素的子集。
An iterator is an object with a next(Python 2) or__next__(Python 3) method.
迭代器对象是一个含有next(Python2)或者__next__(Python3)方法的对象。
However, when you request an iterator from an iterator(which you would rarely do), it just gives you a copy of itself.
但是,当您从迭代器(您很少这样做)请求迭代器时,它只会为您提供自身的副本。
Its results are an iterator function, a state, and an initial value for the first iterator variable.
他的结果是一个迭代函数,一个状态,和给第一个迭代变量的一个初始值。
One of the easiest ways to create an iterator is to use the range notation a… b.
创建迭代器的一个最简单的方法是使用区间标记a…b。
Once we have created an iterator, we can choose to use it in a variety of ways.
一旦创建迭代器之后,可以选择用多种方式利用它。
According to Wikipedia, an iterator is an object that enables a programmer to traverse a container, particularly lists.
根据维基百科,迭代器是一个让程序员可以遍历一个容器(特别是列表)的对象。
For example, consider the following code, which uses an iterator to walk the keys of a hash in Java.
例如,考虑如下这段代码,使一个iterator遍历一个Java中的哈希表的关键字。
Once created, an iterator object can be iterated explicitly by repeatedly calling next().
一旦创建,迭代器对象可以通过重复调用next()显式地迭代。
Either way, an iterator is created, i.e. some object that can give you the data you want.
无论哪种方式,都会创建迭代器,即可以为您提供所需数据的某个对象。
结果: 75, 时间: 0.0318

An iterator 用不同的语言

单词翻译

顶级字典查询

英语 - 中文