The okay ways.
In case over the problem is
A other example will never find
>>> print(r"C:\User\Astrikor\Dataset") C:\User\Astrikor\Dataset >>> print("C:/User/Astrikor/Dataset") C:/User/Astrikor/Dataset >>> print("C:\\User\\Astrikor\\Dataset") C:\User\Astrikor\DatasetNever a singel
\
in path for Window,because of escape character.In case over the problem is
\U
which gives unicodeescape error.A other example will never find
top
folder,because \t
Horizontal Tab(TAB).>>> s = 'C:\top' >>> s 'C:\top' >>> print(s) C: op >>> >>> # Fix >>> s = r'C:\top' >>> s 'C:\\top' >>> print(s) C:\top