This method tells you all information you need to know: whether one node is descendant of an ancestor of the other, whether it is before or after, and so on.
这个方法告诉您所有想知道的信息:一个节点是否是另一个节点的祖先的后代,它是在前面还是后面呢,等等。
So we won't do it for this molecule, but we'll go back and do it for some of our other examples, and you can go back and do it for this one.
因此对于这个分子我们就不做这一步了,但是对于其它的例子我们会回来做这一步的,而对于这个,到时大家也可以回来做一下。
This method tells you all you need to know: whether one node is a descendent or an ancestor of the other, whether it is before or after, and so on.
这个方法告诉您所有想知道的内容:一个节点是另一个节点的后代还是祖先、在前面还是后面等等。
But whereas the other one was obviously forever, this allows you to specify a finite number of times that you wanna do something.
但又不同于“无限循环“,你可以根据需要,为它指定循环次数。
Let me give you one other anecdote that I can't resist. This is the kind of thing you can use at cocktail parties to impress your friends from Harvard. OK.
让我再告诉一个秘密吧,这事儿在鸡尾酒会上,你能用来唬唬,哈佛的那帮人,好。
So we won't do it for this molecule, but we'll go back and do it for some of our other examples, and you can go back and do it for this one.
因此对于这个分子我们就不做这一步了,但是对于其它的例子我们会回来做这一步的,而对于这个,到时大家也可以回来做一下。
应用推荐