第1题
c=’’’ <title>The Dormouse’s story</title> Elsie Lacie Tillie ’’’ def myFilter(tag): print(tag.name) __________________________________________ soup=BeautifulSoup(doc,"lxml") tag=soup.find_all(myFilter) print(tag) 缺失的语句是:
A、return (tag.name=="a" and tag["href"]=="http://example.com/lacie")
B、return (tag.name=="a" and tag.has_attr("href") and tag["href"]=="http://example.com/lacie")
C、return (tag.name=="a" and tag.has_attr("href") and tag.href=="http://example.com/lacie")
D、return (tag.name=="a" and tag.href=="http://example.com/lacie")
第2题
The Dormouse's story
Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.
...
''' soup=BeautifulSoup(doc,"lxml") ______________________________________ for tag in tags: print(tag["href"]) 结果是: http://example.com/elsie http://example.com/lacie http://example.com/tillie 缺失的语句是:
A、tags=soup.select("pa")
B、tags=soup.select("p[] a")
C、tags=soup.select("p[class]>a")
D、tags=soup.select("p[class='story'] a")
第5题
链接http://example.com/app/admin_geappInfo 是管理员管理系统信息的页面,当普通用户在没有管理员权限是,使用以上链接直接访问了该页面,说明该系统存在()漏洞。
A. SQL注入
B. 不安全的加密存储
C. 越权访问
D. 跨站脚本漏洞
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!