Python BeautifulSoup 中文乱码

 resp = requests.get(url)
 resp.encoding = 'utf-8'
        answer_list = []
        if resp:
            bs_data = BeautifulSoup(resp.text, 'lxml')
原文地址:https://www.cnblogs.com/cbugs/p/9841968.html