擅长:python、mysql、java
<p>您提供的逐步逻辑是正确的。<br/>
但是,您发布的代码不符合逻辑,是不正确的。在</p>
<p>请尝试以下代码:</p>
<pre><code>def vowelCounter(listName):
string = ''.join(listName)
count = 0
vowels = 'aeiouAEIOU'
for ch in string:
if ch in vowels:
count += 1
return count
print(vowelCounter(["terrapin","station","13points"]))
</code></pre>