printing backslash

micklee74 at hotmail.com micklee74 at hotmail.com
Wed Jun 7 12:46:33 EDT 2006


hi
i want to print something like this

|\|

first i tried it as string

a = "|\|"

it prints ok

but when i put it to a list

a = ["|\|"]

it gives me '|\\|' .there are 2 back slashes...i only want one.. how
can i properly escape it?
I have tried [r"|\|"] , [r'\\'] but they do not work...
thanks




More information about the Python-list mailing list