photo= PhotoImage ("C:\Users\Administrator\OneDrive\Desktop\Lee.png") This
To explain why this error occurred, the Python string (also in C) is wrapped in
\ inside is a character with a special meaning, so you can enter a special character depending on what character comes after it. (Escape character) In the example above,
\U means that the Unicode number displays Unicode characters with numbers at the back, not
'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
The Unicode Escape codec generates an error message that cannot interpret \UXXXXXXXX.
© 2022 pinfo. All rights reserved.