Listing 5 USES both Ruby code and expressions. Notice the text in the body of the do loop.
清单5使用了Ruby代码和表达式。
What we do is, in a loop, march down the argument list checking each one to see if it is an option.
我们所做的是,用一个循环遍历参数列表检查每个参数来看它是否为选项。
The loop simply iterates through the array and prints each line as it would do on the command line, but enforcing an XHTML break-line element after each print.
此循环迭代这个数组并打印每一行,与它在命令行上所做的无异,只不过在每次打印后均强制使用一个xhtml断行元素。
What's the first thing I do in a loop?
我在循环中做的第一件事情是什么呢?
Do not include synchronized methods into a loop structure.
不要将同步方法放到循环结构中。
To wait all we do is put the thread into a busy loop (a spin).
为了让线程等待,我们只需将线程执行一个忙循环(自旋)。
The loop could, of course, do anything else desired with each production encountered.
当然,该循环可以对遇到的每个产品做我们所期望的任何其它事情。
The reasonable approach is to do the basic flow once, do a loop once, and then do a loop a second time.
最合理的方法是做一遍基本流程,一遍循环流程,然后再做一遍循环流程。
Since we do network transmission on every core and since we poll for network IO from the scheduler’s idle loop, we distribute network processing evenly across all cores.
由于我们在每个核心上进行网络传输,同时由于在调度器的空闲循环中对网络IO进行轮询,我们将网络处理均匀地分散到每个核心上。
So now all you need to do is change the loop so that it will utilize this.
现在您所需要做的就是更改循环以利用这种方法。
Well I ought to be able to do that by simply generalizing the loop. And that's what the next piece of code on your a hand out shows you.
好的通过生成这个循环,我应该能够达到目的,这也是你们的讲义中下一段代码。
Note that the extension is easy to understand and modify, and that it can do the job just as well as the previous, non-parsing example (see the Event loop with command-line switches).
请注意,很容易理解和修改这个扩展,而且该扩展可以与前面的非解析示例一样出色地完成工作(请参阅带命令行开关的事件循环)。
So what do air combat and the OODA loop have to do with UI design?
那么空战与OODA循环又和UI设计有什么关系呢?
Do very basic math, such as loop increments?
执行基本的数学运算,例如循环增值。
If, on the other hand, you do a for-each loop against the query a completely different model is used.
另一方面,如果您对于一个查询使用for -each循环,那么执行模型将会完全不同。
Launch into Optim Query Tuner (if installed) directly from SQL-related dashboards to do immediate tuning of problematic SQL, closing the loop on performance problem resolution.
直接从SQL相关的面板启动OptimQueryTuner(如果已安装)来快速调整有问题的SQL,结束性能问题解决循环。
This way, container classes that do not build on the core collections framework can still take advantage of the new for-each loop.
这样,不是在核心集合框架上构建的容器类也能利用新的for - each循环。
Continue must be in a loop (e.g., for, do, while). It cannot appear in case constructs.
continue一定是在for,do,while这些循环中,而不能在实例构建中出现。
Next, set up your test to loop through all of the data. The easiest way to do this is by adding a loop.
下一步,设置您的测试循环测试所有数据。
What we have to do is loop until we have less than ten results or until there is an error. The loop looks like this!
我们需要使用一个循环进行遍历,直到所返回的结果少于10个或出现错误为止。
Since you do not have to wait for a list to be generated (stop and go) or allocate a thread to processing the loop (pipelining), this can be the most efficient method.
由于您无需等待一个列表生成完毕(停止并前进)或者分配一个线程用于处理循环(并行管道),这可能是最有效率的方法了。
You do this so as to not bombard the cloud manager with requests, and also to not have the flow run a continuous loop unnecessarily.
这样做的目的有两个:一是避免过多的请求“轰炸”云管理器;二是避免流不必要地持续运行循环。
The last thing we need to do is activate our POA to start queuing client requests and force the server to enter its event loop to receive those incoming requests.
最后要做的一件事,就是激活poa,使客户机请求开始排队,并强制服务器输入其事件循环,以接收这些传入的请求。
All that's left to do now is to loop over the collection, printing the content, author, and publication date of each.
现在所有剩下要做的就是迭代通过集合,打印出每个帖子的内容、作者和发布日期。
The above example shows that sequential scan and indexes are used to do the data retrieval, and the nested-loop join method is used to join all tables.
以上示例展示了如何使用连续扫描和索引来进行数据检索,以及如何使用嵌套循环连接方法来连接所有表。
When interest rates are low, consumers and businesses do not just borrow money; they borrow money to buy assets, setting up a feedback loop that can eventually lead to a bubble.
当利息较低时,消费者与商人并非仅仅借贷资金,他们将借来的钱购买资产,形成反馈循环,最终导致泡沫。
The two users will simultaneously do the two actions in a loop.
两个用户同时循环进行两个活动。
The inner loop, this part here, I do m times.
这个循环执行了多少次呢?
How do I know when I'm done with the loop?
我怎么知道循环完毕了呢?
How do I know when I'm done with the loop?
我怎么知道循环完毕了呢?
应用推荐