import requests
import re
content = requests.get('https://book.douban.com/').text
pattern = re.compile('<li.*?cover.*?href="(.*?)".*?title="(.*?)".*?more-meta.*?author">(.*?)</span>.*?year">(.*?)</span>.*?</li>', re.S)
results = re
python爬虫返回的结果是中括号[],求解大神?
最新推荐文章于 2021-12-01 23:29:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)