相关试题
单选题 如何用 BeautifulSoup 查找 所有 class 包含"news"的<div>?
单选题 正则表达式r"\d+"匹配什么内容?
单选题 如何用re匹配所有邮箱地址(如user@example.com)?
单选题 如何获取<a href="https://example.com">Example</a>的href属性?
单选题 使用 BeautifulSoup解析HTML时,以下哪个方法可以找到第一个<div>标签?
单选题 如何获取某个标签的所有属性(如<a href="..." class="link">)?
单选题 如何提取<p class="content">Hello</p>中的文本"Hello"?
单选题 re.sub(r' \s+','-',text)的作用是?