爬虫 -- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 301: unexpected end of data

 

 

html.decode ( "utf-8"), sometimes this form being given, then the following modified form of the second parameter errors decode the ignore function set, the default is in strict
html.decode("utf-8",'ignore')


Guess you like

Origin www.cnblogs.com/bravesunforever/p/11111227.html