亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為啥我的xpath 匹配不到呢?

為啥我的xpath 匹配不到呢?

青春有我 2018-07-03 13:13:53
<div class="img"><a target="_blank" href="http://news.pedaily.cn/201806/432662.shtml"><img src="https://static.pedaily.cn/head/css/images/noimage.png"  data-src="https://pic2.pedaily.cn/default/scenery2/other/306330.jpg"  alt="6小時起伏,榮耀手機618排名大逆轉,榮耀倪嘉悅:手機行業到了換機時期"></a></div><h3><a href="http://news.pedaily.cn/201806/432662.shtml" target="_blank">6小時起伏,榮耀手機618排名大逆轉,榮耀倪嘉悅:手機行業到了換機時期</a></h3><div class="tag"><span class="date">2018-06-21 10:10</span><a href="http://www.pedaily.cn/tag/235880/" target="_blank">京東618</a><a href="http://www.pedaily.cn/tag/190820/" target="_blank">華為榮耀</a><a href="http://www.pedaily.cn/tag/82753/" target="_blank">小米</a></div></li>xpath:  title_list=etree.HTML(response.content.decode('utf-8')).xpath('//div[@class="img"]/a[contains(@target,"_blank")]/@alt')
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 893 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號