You can also use this function as an example to achieve character mappings only on selective nodes in the result tree.
也可使用该函数作为一个例子,仅对结果树中选定节点使用字符映射。
The template, however, is great to use as the example for this tutorial.
但是这个模板非常适合作为本教程的例子。
You can use the example in this article as a starting point for creating your own variations on it.
您可以使用本文中的示例作为创建您自己的相关变体的一个起点。
And the reason I want to use this as an example is, here's my little definition of segment.
我为什么要用这个,做为这个例子的原因是,这是我对于segment的一个小定义。
b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?
好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?
应用推荐