MathTop

word_count 函数

统计文本中由字母、数字或下划线组成的词数量。

语法

  • WordCount(text)
  • word_count(text)

参数与选项

text文本值,通常写在引号中。

示例

  1. 统计词数WordCount('alpha beta, gamma')返回 3。