Hola,

quiero escapar el backslash en un string pero me sale un error o me salen
dos, la idea es que quede así '\x' como hago?

>>> "\\x"
'\\x'
>>> r'\x'
'\\x'
>>> "\x"
ValueError: invalid \x escape

-- 
  *Diego Alonso Uribe Gamez*
------------------------------

*Desarrollador web*

Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>

Google+: http://gplus.to/diegoug
------------------------------
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a