出错的代码
from lxml import etree
import requests
url = 'https://www.baidu.com/'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36'}
resp = requests.get(url,headers = headers)
e = etree.HTML(resp.text)
info = e.xpath('//div[@id=“s-top-left”]/a/text()')
print(info)
报错显示:lxml.etree.XPathEvalError: Invalid expression是什么问题?