既然我有了对称因子列表,我将它附加到原始列表中。
Now that I have the list of symmetrical factors, I append it to the original list.
现在我可以转到下一项最简单的任务:获得数字的因子列表。
Now I can move on to the next-simplest task: getting a list of factors of Numbers. The test appears in Listing 7.
此方法的最后一行是方法的返回值,它是本例子中的因子列表。
The last line of the method is the method's return value, which is the list of factors in this case.
第五步,现在已经有了对称因子列表,我将它添加到原来的列表中。
Fifth, now that I have the list of symmetrical factors, I append it to the original list.
用这些因子除以目标数,以获得对称因子,并将它加入因子列表中。
Divide the target number by each of these factors to get the symmetrical factor, and add it to the list of factors.
例如,如果目标数是16,平方根的整部部分4会在因子列表中出现两次。
For example, if the target number is 16, the whole-number root of 4 would end up on the list of factors twice.
清单5中的代码首先将该因子列表收集到目标数字的平方根,将其保存在factor变量中。
The code in Listing 5 first gathers the list of factors up to the square root of the target number, saving it in the factors variable.
我把1和目标数字添加到列表中(我在遵守上面给出的公式,并且所有因子列表都包括1和该数字本身)。
I add 1 and the target number to the list. (I'm adhering to the formula I gave above, and all lists of factors include 1 and the number itself.)
流水线复制当某个客户端向HDFS文件写数据的时候,一开始是写入本地临时文件,假设该文件的replication因子设置为3,那么客户端会从Namenode获取一张Datanode列表来存放副本。
When a client is writing data to an HDFS file, its data is first written to a local file as explained in the previous section. Suppose the HDFS file has a replication factor of three.
然后我将一个新的集合附加至由factor列表中的map函数生成的factor上,应用此代码生成对称的(平方根上方匹配的因子)列表。
I then append a new collection onto factors - generated by the map function on the factors list - applying the code to generate the symmetrical (the matching factor above the square root) list.
首先把所有因子创建为一张动态列表(ArrayList)。
I start by creating a list of all the factors as a dynamic list (an ArrayList).
在汤姆森路透网络数据库(ThomsonReutersWebofKnowledge)盘点的学术杂志列表中获得了一个位置之后,这本杂志正在等待它第一年的影响因子出炉。
Having earned a spot on the list of journals counted by Thomson Reuters Web of Knowledge, the journal is awaiting its first impact factor.
逐项计算各因子分,以列表形式与国内常模进行比较。
The scores of each factor were calculated by turns and compared with the national norm.
逐项计算各因子分,以列表形式与国内常模进行比较。
The scores of each factor were calculated by turns and compared with the national norm.
应用推荐