I am making a GUI using tkinter and i am using matplotlib to print some graphics in a tk windown. But when i run the code it gives me a "unicode error".
I already know that the problem is with the "\\U" part in the paths, but i can't find a way to change this and remove the error.
The problem is with the directory string.
"C:\Users\Vinicius"
Per this thread ,
"Here, \\U starts an eight-character Unicode escape, such as '\\U00014321`. In your code, the escape is followed by the character 's', which is invalid.
You either need to duplicate all backslashes, or prefix the string with r (to produce a raw string)." @martin-v-löwis
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.