Count Substring Occurrences

Count Substring Occurrences

该函数应将一个主字符串和一个子字符串作为输入,并返回子字符串在主字符串中出现的次数。该函数不区分大小写,并可能出现重叠。

example

输入两个字符串 (str).

输出:整数 (int).

示例

assert count_occurrences("hello...
You should be an authorized user in order to see the full description and start solving this mission.