网站seo工具,WordPress nas,重庆沙坪坝,图片模板在线设计制作我是美容小组的新手。我试图从ESPN Fantasy Basketball Standings中获取“Season Stats”表#xff0c;但并不是返回所有行。经过一番研究#xff0c;我认为这可能是一个问题html.parser#xff0c;所以我用了lxml。我得到了同样的结果。如果有人能告诉我如何得到所有球队的…我是美容小组的新手。我试图从ESPN Fantasy Basketball Standings中获取“Season Stats”表但并不是返回所有行。经过一番研究我认为这可能是一个问题html.parser所以我用了lxml。我得到了同样的结果。如果有人能告诉我如何得到所有球队的名字我会很感激的。在我的代码from bs4 import BeautifulSoupfrom urllib.request import urlopensoup BeautifulSoup(urlopen(http://games.espn.com/fba/standings?leagueId20960seasonId2017),html.parser)tableStats soup.find(table, {class : tableBody})for row in tableStats.findAll(tr)[2:]:col row.findAll(td)try:name col[0].a.string.strip()print(name)except Exception as e:print(str(e))输出(如您所见仅显示几个团队名称)Le Tuc GrizzliesPeyton RavensHeaven VulturesVersailles Golden BearsBaltimore CortosLa Murette ScavengersXO Gayfishes