How do I express a backslash in a string?
Tobiah
toby at tobiah.org
Wed Aug 22 14:19:43 EDT 2007
>>> "'"
"'"
>>> "\'"
"'"
>>> "\\'"
"\\'"
>>> "\\\'"
"\\'"
>>>
This is quite different than any other language
that I am used to. Normally, a double backslash
takes away the special meaning of the last backslash,
and so you are left with a single backslash.
How do I express the single backslash?
Thanks,
Tobiah
--
Posted via a free Usenet account from http://www.teranews.com
More information about the Python-list
mailing list