[lang-ref]
文字列
>
( string_search )
> ( count_occurrence ) ( python )
[lang-ref] ( count_occurrence ) ( python )
def test_count_occurrence(): text = 'prerequisites' s = 're' assert text.count(s) == 2