Toggle navigation
首页
智慧树知到答案
知到答案智慧树章节答案2024秋
知到答案智慧树章节答案2024春
知到智慧树答案2023章节测试
知到智慧树期末答案
知到智慧树期末考试答案2024秋
题库
知到智慧树期末考试答案章节题库2024春-非顺序
免费无限制查题
会员
中心
登录
注册
搜索
首页
智慧树知到答案
知到智慧树答案2023章节测试
⬆️⬆️⬆️本课程2024最新同名章节期末答案⬆️⬆️
网络数据爬取与处理答案2023
所有课程章节/期末均有答案,可提供word版,点击联系客服✅
332 阅读
0 评论
126 点赞
«
1
2
3
4
5
6
7
8
»
第四章测试
1.HTML 是整个网页的结构,相当于整个网站的框架。带“<”、“>”符号的都是属于 HTML 的标签,并且标签都是成对出现的。下列说法中,错误的是( )。
A:
表示超链接标签 B:<html>..</html> 表示标记中间的元素是网页 C:<img>..</img>表示该标签是标题 D:有的标记附标签是可以带有属性参数,表示为<标记 属性="参数值">
答案:C
2.下列关于BeautifulSoup中对象类型描述错误的是( )。
A:name属性可获取标签名 B:NavigableString属性可获取标签内非属性字符串 C:attrs属性可获取标签的属性 D:string属性可获取标签的id属性
内容已经隐藏,点击付费后查看
3.执行以下程序输出的结果是( )。
from bs4 import BeautifulSoup
html='<html><p class="story">ss<a id="name1">Alice</a></p><a id="name2">Amy</a></html>'
soup=BeautifulSoup(html,'html.parser')
print(soup.a.string)
A:Alice Amy B:Amy C:Alice D:ss
内容已经隐藏,点击付费后查看
4.执行以下程序输出的结果是( )。
from bs4 import BeautifulSoup
html='<html><p class="story">ss<a id="name1">Alice</a></p><a id="name2">Amy</a></html>'
soup=BeautifulSoup(html,'html.parser')
soup.find_all(name='a',id='name2')
A:[<a id="name1">Alice</a>, <a id="name2">Amy</a>] B:[<p class="story">ss<a id="name1">Alice</a></p>] C:[<a id="name2">Amy</a>] D:[<a id="name1">Alice</a>]
内容已经隐藏,点击付费后查看
5.执行以下程序输出的结果是( )。
from bs4 import BeautifulSoup
html='<html><p class="story">ss<a id="name1">Alice</a></p><a id="name2">Amy</a></html>'
soup=BeautifulSoup(html,'html.parser')
soup.select('p~a')
A:[<a id="name2">Amy</a>] B:[<p class="story">ss<a id="name1">Alice</a></p>] C:[<a id="name1">Alice</a>] D:[<a id="name1">Alice</a>, <a id="name2">Amy</a>]
内容已经隐藏,点击付费后查看
«
1
2
3
4
5
6
7
8
»
温馨提示
支付
¥3.00
元后可查看付费内容,请先翻页预览!
微信支付
点赞(
126
)
dxwkbang
本文分类:
知到智慧树答案2023章节测试
本文标签:
网络数据爬取与处理
浏览次数:
332
次浏览
发布日期:2023-03-16 05:34:51
上一篇 >
商业大数据分析答案2023
下一篇 >
综合商务英语Ⅰ答案2023
网络数据爬取与处理章节测试课后答案2024春
网络数据爬取与处理期末答案和章节题库2024春
网络数据爬取与处理期末考试答案2023春
网络数据爬取与处理期末答案2023秋
网络数据爬取与处理答案2023秋
网络数据爬取与处理答案2023
网络数据爬取与处理期末考试答案题库2024秋
返回
顶部