Oct-08-2018, 02:13 AM
Backslashes in string indicate special characters. \U indicates a unicode character. There are many possible solutions for this:
- Put an r before the string (r'String\With\Backslashes'). That creates a raw string literal, that treats backslashes as plain characters.
- Double backslash in a normal string is treated as a single backslash ('String\\With\\Backslashes').
- Use Unix-style forward slashes. Python will translate it to the relevant file system syntax and it won't cause problems with special characters.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures