© 1999-2048 dssz.net 粤ICP备11031372号
[其它] beautifulsoup以及正则表达式re之间的一些知识!
说明:代码: import requests import re from bs4 import BeautifulSoup r = requests.get("https://python123.io/ws/demo.html") demo = r.text soup = BeautifulSoup(demo, "html.parser") print(demo) print('查找:ID属性为固定值得东西!') print(soup.find_all(href="http://www.icour<weixin_38601364> 上传 | 大小:27kb