python encoding报错_Python BeautifulSoup报错encoding error问题
编码后的html:def getHtml(self,url):headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0","Connection":"keep-alive",}r = requests.get(url,headers=headers)html ...