strings strings.CountWords 返回给定字符串中的单词数量。 签名 strings.CountWords STRING 返回类型 int 别名 countwords {{ "Hugo is a static site generator." | countwords }} → 6 ← 上一篇:CountRunes 下一篇:Diff →