空灵质感
空灵质感
关注数: 2
粉丝数: 64
发帖数: 943
关注贴吧数: 15
俄罗斯吧入侵乌克兰吧? 乌克兰吧人数比俄罗斯吧人数还要多,是不是很多支持俄罗斯的人跑来乌克兰吧了?
白煞配海夫蓝鲸火麒麟 各位高手,想重新玩乒乓球,白煞底板配海夫蓝鲸和火麒麟咋样啊?哪种海夫蓝鲸和火麒麟呢
我是间谍首脑
求助大神,re.findall()正则式无返回值 import re import requests headers = { 'user-agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 ' '(KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', } res = requests.get('http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbj.xiaozhu.com%2F&urlrefer=821f9d6751fc6fc0607e94f9440e974e',headers=headers) // res 确实爬下了网页 prices = re.findall("<span class='result_price'>¥<i>(.*?)</i>起/晚</span>",res.text) /////这里没有返回值 print(prices) 为啥re.findall()不能找到正则表达式呢? prices 是空列表
求助大神,re.findall()正则式无返回值 import re import requests headers = { 'user-agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 ' '(KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', } res = requests.get('http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbj.xiaozhu.com%2F&urlrefer=821f9d6751fc6fc0607e94f9440e974e',headers=headers) // res 确实爬下了网页 prices = re.findall("<span class='result_price'>¥<i>(.*?)</i>起/晚</span>",res.text) /////这里没有返回值 print(prices 为啥re.findall()不能找到正则表达式呢? prices 是空列表
大佬们看看呗,给点意见。
1
下一页