--- title: Count occurrences of a substring localeTitle: 计算子字符串的出现次数 --- ## 计算子字符串的出现次数 这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/coding-interview-prep/rosetta-code/count-occurrences-of-a-substring/index.md) 。 [这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。