3
3
3f4g2021-07-28 13:12:48
Python
3f4g, 2021-07-28 13:12:48

Why is it throwing an error when opening a .html file in python?

Why is it throwing an error when opening a .html file in python?
tell me how to open the file. Tried double \\ did not help.

61012d9ca59c9821403887.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
K A, 2021-07-28
@russrage

Try raw string r'C:\\ or r'''C:\Users\...'''.
\U in "C:\Users ..." triggers an eight-character Unicode escape.
And it's better to switch to Linux or MacOs.

S
Stalker_RED, 2021-07-28
@Stalker_RED

Check the encoding, it might not be utf-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question