擅长:python、mysql、java
<pre><code>for x in list:
if len(x) == 4:
print x
</code></pre>
<p>我建议先学习Python的基础知识,然后再问一些简单的<a href="https://www.google.com/search?q=find%20the%20length%20of%20a%20python%20string&oq=find%20the%20length%20of%20a%20python%20string&aqs=chrome..69i57j0l5.5914j0j9&sourceid=chrome&espvd=210&es_sm=119&ie=UTF-8" rel="nofollow">google search</a>就能很容易找到的问题</p>
<p>确保在实际程序中不要使用<code>list</code>作为var名称。它已经在Python中使用</p>