使用FOR循环 英语是什么意思 - 英语翻译

using a for loop

在 中文 中使用 使用for循环 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
我们使用“for”循环遍历从区块1到最新区块。
We are using the“for” loop to go from the block 1 to the last block.
为了实现它,我们可以使用for循环
To do this, we can use a for loop.
为此,我们将使用for循环
I would use it for circles.
我们Python开发者通常使用For循环
We Python developers commonly use For looping.
如果迭代次数是固定的,建议使用for循环
If the number of iteration is fixed,it is recommended to use for loop.
我们Python开发者通常使用For循环
We Python developers usually use For loops.
使用for循环,在这种情况下,我如何访问循环索引,从1到5??
Using a for loop, how do I access the loop index, from 1 to 5 in this case?
它们都将Integer数组作为输入,使用for循环转换每个元素,并返回一个新数组。
They both take an Integer array as input,transform each element by using a for loop, and return a new array.
可以使用for循环,打印出每颗单独的星号,而不是用一个print语句打印十个星号。
Have this code print using a for loop, and print each asterisk individually, rather than just printing ten asterisks with one print statement.
使用for循环,使得total的值为myArr的数组中的每个元素的值的总和。
Use a for loop to add the value of each element of the myArr array to total.
对于哈希数据结构,我们同样可以使用for循环,不过我们需要使用key来进行。
For a hash data structure, we can also use the for loop, but we apply the key:.
对于哈希数据结构,我们同样可以使用for循环,不过我们需要使用key来进行:.
We can also use the for loop for the hash data structure, but we need to use the key:.
现在我们理解了所发生的错误,同时也将代码改回使用for循环,并保留闭包的move关键字:.
Now we have seen the errors,we will also switch back to using the for loop, and we will keep the move keyword with the closure:.
现在fibonacciNumbers是一个SequenceType,我们可以使用for循环:.
Now, since fibonacciNumbers is a SequenceType, we can use it in a for loop:.
如果迭代次数是固定的,建议使用for循环
If the number of iteration is steady,it is recommended for the usage of loop.
当reduce(into:_:)的调用被编译器内联时,生成的代码通常会和使用for循环所得到的代码是一致的。
When the call to reduce(into:_:) is inlined by the compiler, the generated code isoften the same as when using a for loop.
使用for循环遍历从Object.
Looping over the array returned from Object.
但是为了让代码更容易阅读和理解,大多数的时候我们使用for循环而不是while循环。
But to make the codebetter readable& understanding most of the time we use for loop instead of while.
当我使用for循环遍历它时,如何访问循环索引,在这种情况下从1到5??
When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?
示例18-3中展示了如何使用for循环来解构,或拆开一个元组作为for循环的一部分:.
Listing 18-3 demonstrates how to use a pattern in a for loop to destructure, or break apart, a tuple as part of the for loop:..
下面是一个使用for循环来倒计时的例子,它还使用了一个我们还未讲到的方法,rev,用来反转range:.
Here's what the countdown would look like using a for loop and another method we have not yet talked about, rev, to reverse the range:.
您不必使用for循环来查找使用不同标准的学生。
You don't have to use a for loop to find students using different criteria.
我们不再使用内部for循环来对单独对每个框进行循环,而是使用np.maximum和np.
Instead of using an inner for loop to loop over each of the individual boxes, we instead vectorize the code using the np. maximum and np.
我们可以在for循环使用它。
In lieu of that, you can utilize it in cycles.
关键词case可以被for循环使用,就像switch中的case一样。
The case keyword can be used in for loops just like in switch cases.
遍历数组的另一种方法是使用for…in循环
Another way to iterate is to use the for… in loop.
第三个意义上,使用while或for循环,以及使用map或fold的函数也被视为迭代。
Used in the third sense, repetitions using while or for loops as well as those using map or fold functions may be considered iterations.
使用这个for循环,我们分别计算z和每个训练示例的值。
Using this for loop, we are calculating z and a value for each training example separately.
遗憾的是,有三种常见的情况无法使用for-each循环:.
Unfortunately, there are three common situations where you can't use a for-each loop:.
如果你在程序的其他地方需要使用循环控制变量,你就不能在for循环中声明它。
If you need to use the loop control variable elsewhere in your program, you will not be able to declare it inside the for loop.
结果: 1451, 时间: 0.0272

单词翻译

顶级字典查询

中文 - 英语