The for loop and sequence indexing
for 循环和序列索引
Listing 2. The for loop and a tuple.
清单2.for循环和tuple。
Listing 2 shows this while loop and the corresponding condition.
清单2显示了这个while循环和相应的条件。
Listing 3 starts the main program loop and reads the synclient output.
清单3将启动主程序循环并读取synclient输出。
Let's close the loop and let's try to figure out the voltage inside this loop.
我们闭合线圈,并试着算出线圈内部的电压。
BuildCanary then goes back to the top of its while loop and waits for the next message.
然后,BuildCanary回到while循环的顶端,等待下一条消息。
This article has discussed the Python for loop and demonstrated some of its many USES.
本文讨论了Pythonfor循环并演示了它的一些使用方式。
This one, with an electro loop and hand claps, doesn't sound as glum as its title portends.
但这首拥有循环电子乐以及拍手声的歌曲,听上去并不像标题预示的那样阴郁。
Can I find a surface that's bounded by this loop and that does not pass through the origin?
能找到一个以该环路为界,且不经过原点的曲面吗?
The StringCreator class enters an infinite loop and creates String objects with the value "hello" at //1.
StringCreator类进入到一个无限循环中并且使用值“hello”在 //1 处创建String对象。
Most of the time, we just slap Iterator inside a for() loop or enhanced for() loop and move on, so to speak.
可以这么说,大部分时间我们只是将Iterator 随意放到for()循环或加强 for() 循环中,然后就继续其他操作了。
“There is a huge opportunity for us to create a feedback loop and provide data to consumers,” Ojanpera says.
“对我们来说,这是一个巨大的机会,我们可以创造一个反馈圈(feedback loop)并且为消费者提供数据服务,”奥耶佩拉说。
Developers working on UI design should try to understand the OODA loop and use it in the initial design of the UI.
负责UI设计的开发人员应当尝试了解ooda循环,并将它用在UI的初始设计中。
The loop and the test are very explicit in Listing 3, whereas in Listing 2 they are done implicitly by the processor.
清单3中的循环和测试非常明显,而在清单2中是由处理程序隐含完成的。
The goal is to replace the action: instead of a pop-up dialog for Hello World, we will code an infinite loop and cause a hang.
目标是替换操作:我们将编写一个死循环来代替弹出Hello World对话框,并引起挂起。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
Next comes loop which simply creates a loop and then react which has case statements that are used to handle incoming messages.
接下来进入到循坏,这里只是简单的创建一个循环并有一个case语句用来处理到来的消息。
It then iterates over the elements in the response, processes each one using a foreach() loop and retrieves the information in Figure 1.
然后遍历响应中的元素,通过 foreach()循环检索图1 中的信息。
That one scene is worth all the extra worthless scenes in the movie and I could put it on a loop and watch it for 90 minutes straight.
这一段情节就抵得上这部电影其他那些没意思的段子了,我简直能把它反复看上整90分钟。
The next article in this series will take a closer look at the for loop and how to use it properly with the different container types.
本系列的下一篇文章将更加详细地介绍for循环,以及如何正确地将它与不同容器类型一起使用。
It then iterates over the elements in the response, processing each one using a foreach loop and retrieving the information shown in Figure 1.
之后,它对此响应内的全部进行迭代,用foreach循环对每一个进行处理并检索信息,如图1所示。
One by one, each of the eight birds pulled sharply upward into a full loop and flew all the way around to a dead-slow stand-up landing on the sand.
八只海鸥,一个接一个,陡直向上跃升,翻了个斤斗,又兜了个圈子,以极慢的速度,直立着降落在沙滩上。
We will now showcase specific abilities of the Parse: : RecDescent grammar by adding on to the UI features from a simple event loop and a simple user interface.
现在,通过在简单事件循环和简单用户界面的UI功能基础上再增加一些功能,我们将具体展示Parse:RecDescent文法所具有的特定能力。
This particular infinite loop and micro-sleep approach is designed to allow cnee and Firefox to have a chance to process events, while retaining adequate UI performance.
这种特殊的无限循环和微休眠(micro - sleep)方法目的是允许cnee和firefox有机会处理事件,同时保持足够的UI性能。
The GOTO label statement can unconditionally exit from a loop and transfer control to the executable statement or statement block that follows the specified statement label.
GO TO标签语句可以无条件地退出循环,并将控制权转移到跟在指定的语句标签之后的可执行语句或语句块。
The key is that the loop and network sockets need a lot of management code to ensure that you are listening, updating, and controlling the different connections and interfaces.
关键在于循环和网络套接字需要大量管理代码,这样才能监听、更新和控制不同的连接和接口。
Dr Flor believes that, by removing the reinforcement loop and bringing in so-called pain-incompatible memories, traces of pain in the brain can be reduced or even extinguished.
福罗博士相信如果消除了强化环路,并引入所谓与疼痛不相容的记忆,那么疼痛在脑中的记忆痕迹会减少甚至消失。
Enabling teams and individuals to break out of this "infinite loop" and achieve substantial net productivity gains is the change we're making today.
使团队和个人打破这个”无限循环“并实现真实纯粹的生产力的收获是我们今天要做的变化。
Then we loop over columns (first loop) and add the rest of the header cells to this row and add the row to the provider after the looping is done.
然后,我们将遍历列(第一次循环)并将其余的标题栏单元格添加到该行,并在遍历结束之后将该行添加到提供程序。
Then we loop over columns (first loop) and add the rest of the header cells to this row and add the row to the provider after the looping is done.
然后,我们将遍历列(第一次循环)并将其余的标题栏单元格添加到该行,并在遍历结束之后将该行添加到提供程序。
应用推荐