擅长:python、mysql、java
<p>按<code>-</code>拆分并重新排列标题部分:</p>
<pre><code>>>> import urllib2
>>> from bs4 import BeautifulSoup
>>>
>>> soup = BeautifulSoup(urllib2.urlopen("http://www.daisuki.net/us/en/anime/watch.GUNDAMUNICORNRE0096.13142.html"), "lxml")
>>> Name = soup.title.string
>>>
>>> " - ".join(Name.replace('#', "").split(" - ")[1::-1])
u'MOBILE SUIT GUNDAM UNICORN RE:0096 - 01 DEPARTURE 0096'
</code></pre>