nth_word 函数
返回文本中第 n 个字母数字词;不存在时返回空字符串。
语法
NthWord(text, n)nth_word(text, n)
参数与选项
text | 包含词的文本。 |
|---|---|
n | 一基词序号。 |
示例
- 第三个词
NthWord('one two, three', 3)返回 three。
返回文本中第 n 个字母数字词;不存在时返回空字符串。
NthWord(text, n)nth_word(text, n)text | 包含词的文本。 |
|---|---|
n | 一基词序号。 |
NthWord('one two, three', 3)返回 three。