擅长:python、mysql、java
<p>您需要的工具是列表理解(<a href="http://docs.python.org/tutorial/datastructures.html#list-comprehensions" rel="nofollow" title="list comprehensions">http://docs.python.org/tutorial/datastructures.html#list-comprehensions</a>)和<code>in</code>运算符(<a href="http://docs.python.org/reference/expressions.html#in" rel="nofollow" title="the `in` operator">http://docs.python.org/reference/expressions.html#in</a>)。你知道吗</p>