擅长:python、mysql、java
<p><a href="https://pypi.python.org/pypi/tld" rel="nofollow">tld</a>包将帮助您:</p>
<pre><code>from tld import get_tld
from tld.utils import update_tld_names
update_tld_names()
print get_tld("http://www.flipkart.com")
</code></pre>
<p>输出</p>
<blockquote>
<p>flipkart.com</p>
</blockquote>