Technically, any odd number of backslashes, as described in the documentation.
>>> r\'\\\' File \"\", line 1 r\'\\\' ^ Syn
In order for you to end a raw string with a slash I suggest you can use this trick:
>>> print r"c:\test"'\\' test\