sub element 子元件
sub-parametric element [力] 亚参数元
air sub-element 空气子单元
traction sub element method 面力子单元法
sub-repetitive element 亚重复元件
The second line indicates that the first "email" sub-element of the "Client" element is to be returned.
第二行表明将返回“ Client ”元素的第一个“ email ”子元素。
The first line specifies that you want to return values for the "email" sub-element of the root "Client" element.
第一行指定要返回根元素“ Client ”的“ email ”子元素的值。
The if clause determines whether the value of the ResponseRequested sub-element for a given comment is equal to Yes.
if 子句判断一条给定评论的 ResponseRequested 子元素的值是否等于 “Yes”。
It took me seven comparisons, because I can take advantage of the fact I know I only ever have to look at the first element of each sub-list. Those are the only things I need to compare, and when I run out of one list, I just add the rest of the list in.
进行了7次对比,因为我可以利用我知道的优势:,每次只需要比较每个子列表的第一个元素,那才是我需要进行对比的内容,当一个列表的元素处理完了,只需要将另一个列表剩下的元素直接添加进去。
I'll let you just grok it but you can see it's basically doing what I did over there. Setting up two indices for the two sub-list,it's just walking down, finding the smallest element, putting it into a new list. When it gets to the end of one of the lists, it skips to the next part, and only one of these two pieces will get called because only one of them is going to have things leftovers.
你们可以大体的浏览一下,但是它们基本就是我在那里所做的事情,为两个子列表设置了两个指针,指针顺着列表走下去,找到最小的元素,把它放入到一个新的列表中去,当它走到一个列表的尾部时,它会跳到下部分去,两部分中只有一个会被执行,因为只有一个会有元素剩余。
You can also assign to a list, or to an element of a list. So ivy sub 1, f -15 or example, could be assigned minus 15, and that will actually mutate the list.
此外你还可以给一个数组,或者数组内部的元素赋值,比如ivy。sub,可以被赋值为,这确实改变了数组。
应用推荐