soup.select('section[id=one] a')[0]['href'] 或. soup.select('#one a')[0]['href']. 正则熟悉的话可以自己撸正则. 其他模块. XPath 或者pyquery 模块也是不错的选择 ...
確定! 回上一頁