为什么不行 感觉代码对的
Traceback (most recent call last):
File "E:/www/py/h4.py", line 16, in <module>
soup=BeautifulSoup(html_doc,"html.parser",from_encoding="utf-8")
File "D:\python\lib\site-packages\bs4\__init__.py", line 153, in __init__
builder = builder_class()
File "D:\python\lib\site-packages\bs4\builder\_htmlparser.py", line 39, in __init__
return super(HTMLParserTreeBuilder, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'strict'