python3.* 要这么写才可以
print(link.name,link['href'],link.getText())
print(link.name,link['href'],link.getText())
2016-10-19
貌似module名不能命名为bs4,因为会和bs4包冲突,在编译运行的时候报错“ from bs4 import BeautifulSoup
ImportError: cannot import name 'BeautifulSoup'”
ImportError: cannot import name 'BeautifulSoup'”
2016-10-17