擅长:python、mysql、java
<p>我想出了一个解决办法,希望它能真正做到你在问题上的本意。你知道吗</p>
<p>代码:-</p>
<pre><code>word = 'hoouseeqwehouusseee'
def count_char(string):
new_string1 = word.replace('hoouse','')
new_string2 = new_string1.replace('houusseee','')
return len(new_string2)
print(count_char(word))
</code></pre>
<p>希望对你有帮助。你知道吗</p>