0
我想將html文檔輸入到我的python中。如何在python中輸入html
我得到這個錯誤:
使用此代碼時UnicodeDecodeError: 'cp950' codec can't decode byte 0xbb in position
362: illegal multibyte sequence
:
from bs4 import BeautifulSoup
soup = BeautifulSoup(open(xxx.html))
print(soup)
我在做什麼錯?
[UnicodeDecodeError錯誤的可能重複:「utf-8」編解碼器't解碼字節0x9c](https://stackoverflow.com/questions/12468179/unicodedecodeerror-utf8-codec-cant-decode-byte-0x9c) –