Listing 20 shows how names can be created using a loop variable.
清单20演示了如何使用循环变量来创建名称。
As for the loop count variable, the first set variable action sets it to 2.
至于循环计数变量,第一个变量设置操作将其设置为2。
The latter approach also ties you to the name of the temporary loop variable used in the view, _course.
后一种方法还会将您与视图中使用的临时循环变量名称_ course联系起来。
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
Initialization. A very common bug is to initialize a variable. Go through a loop, and then forget to reinitialize it when it needs to be reinitialized again.
忘记初始化,忘记初始化变量是一个很常见的错误,运行完一个循环之后,当需要再次初始化时。
But notice unlike a for loop, if you want to declare a variable or increment or decrement to variable, you've got to do that yourself.
但请注意不像for循环,如果你想声明一个变量,或者变大或变小一个变量,你需要自己完成。
应用推荐