才学python爬虫(python3.4),如何输出里面的"女间谍"呢?求教
htmll ='''<a class="nbg" href="http://movie.douban.com/subject/25752261/" title="女间谍">
<img alt="女间谍" class="" src="http://img4.douban.com/view/movie_poster_cover/ipst/public/p2254455238.jpg"/>
</a>'''
from bs4 import BeautifulSoup
soup = BeautifulSoup(htmll)
print(soup.a.img.get_text()) #输出结果为空