how to use the string '\\.\'

Duncan Booth duncan.booth at invalid.invalid
Mon Apr 9 07:21:44 EDT 2007


"=?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B5aSp5rav5LiN6KeB5a62?=" <kelvin.you at gmail.com> wrote:

> print r'\\.\'
> 
> This line will cause error. I just want to print the
> \\.\
> why the prefix character "r" isn't effective. Thanks!
> 
> 

See the FAQ: 
http://www.python.org/doc/faq/general/#why-can-t-raw-strings-r-strings-end-with-a-backslash



More information about the Python-list mailing list