擅长:python、mysql、java
<p>循环中的每个字符串都应该使用<code>split()</code></p>
<p>列表理解示例:</p>
<pre><code>str = ['I am Batman.','I loved the tea.','I will never go to that mall again!']
[s.split() for s in str]
[['I', 'am', 'Batman.'],
['I', 'loved', 'the', 'tea.'],
['I', 'will', 'never', 'go', 'to', 'that', 'mall', 'again!']]
</code></pre>