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: `語法相關`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up