read HTML file === ```python import codecs file = codecs.open("sample.html", "r", "utf-8") print(file.read()) ``` ## Ref. [https://www.kite.com/python/answers/how-to-open-an-html-file-in-python](https://www.kite.com/python/answers/how-to-open-an-html-file-in-python) ###### tags: `語法相關`