Listing 9 presents a script that iterates the tweets from a particular user (using the user_timeline method), and then for each tweet, extracts the particular day on which the tweet originated.
清单9展示的脚本(使用user _ timeline方法)迭代来自一个特定用户的tweet,然后提取每个tweet生成的日期。
The execute() method iterates over the list of validators, invoking the execute() method of each validator whose properties match the given form name and the optional element name.
execute()方法遍历验证器列表,调用每个验证器的 execute() 方法,这些验证器的属性与给定表单的名称和可选元素的名称相匹配。
The notifyObservers method iterates through the observers, using the foreach method and calls receiveUpdate on each one.
notifyObservers方法遍历所有的观察者,使用foreach 方法,然后对每一个观察者调用receiveUpdate 方法。
The newInstance() method, illustrated in Listing 17, iterates over the available ConfigMethod implementations, testing each to determine if it can handle the configuration method under consideration.
清单17 中显示的newInstance()方法在可用的ConfigMethod实现上进行迭代,测试每个 ConfigMethod,以判断它是否可以处理当前考虑的配置方法。
The click method iterates through the list of callbacks and invokes each one.
方法click会遍历回调函数的列表,然后一个个地调用它们。
In addition to the header line, you have a foreach loop in the EventTable method that iterates through each of the games.
除了标题行之外,在EventTable方法中还有一个foreach循环,它将在每个比赛上进行迭代。
When the invoke method of the Call class is called at line 1 above, the Call class iterates through its associated parameters.
当在上面第 1行处调用Call类的 invoke方法时, Call 类迭代其相关的参数。
The third for loop, however, iterates over a temporary string returned by a call to the string object's lower method.
第三个for循环迭代通过调用string对象的lower方法返回的临时string。
The filter method in Listing 9 accepts a list and a criteria (a code block specifying how to filter the list) and iterates over the list, adding each item to a new list if it matches the predicate.
清单9中的filter方法接受了一个list和一个criteria(指定如何过滤列表的代码块)并对列表进行遍历,将满足谓语的项添加到一个新列表中。
The filter method in Listing 9 accepts a list and a criteria (a code block specifying how to filter the list) and iterates over the list, adding each item to a new list if it matches the predicate.
清单9中的filter方法接受了一个list和一个criteria(指定如何过滤列表的代码块)并对列表进行遍历,将满足谓语的项添加到一个新列表中。
应用推荐