elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Tutorial básico de Quickjs


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Python] Strings diferentes
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Python] Strings diferentes  (Leído 1,382 veces)
Sentex

Desconectado Desconectado

Mensajes: 87


Programador


Ver Perfil WWW
[Python] Strings diferentes
« en: 22 Enero 2019, 20:41 pm »

Buenas!.

Tengo un problemilla con una string. Como la string contiene información sensible os pongo una parte de la misma.

String:
Código
  1. \x7B\x22country\x22\x3A\x22DE\x22,\x22currentUser

Código
  1. string = "\x7B\x22country\x22\x3A\x22DE\x22,\x22currentUser"
  2.  
  3. print(string)
Output: {"country":"DE","currentUser

Así funciona perfectamente pero cuando la string la consigo a través de regex la string se queda como el principio (\x7B\x22country\x22\x3A\x22DE\x22,\x22currentUser).


En línea

Preguntas o peticiones en twitter o discord:

Discord: MrSentex#1227
Twitter: @fbi_sentex
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Escribiendo strings en archivos (python 2.6)
Scripting
Carloswaldo 7 5,132 Último mensaje 5 Enero 2010, 04:28 am
por Carloswaldo
escribir strings en archivo (python)
Scripting
skalymut 1 3,885 Último mensaje 6 Febrero 2010, 15:55 pm
por ^Tifa^
[Python] Strings a unicode
Scripting
O-LLOS-O 4 4,904 Último mensaje 30 Julio 2010, 21:00 pm
por O-LLOS-O
Python y sus diferentes implementaciones
Scripting
DISCIPULUS 1 2,847 Último mensaje 29 Mayo 2017, 18:44 pm
por LaThortilla (Effort)
Duda en python screenshot con diferentes imágenes
Scripting
e 4 2,345 Último mensaje 13 Marzo 2018, 20:34 pm
por e
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines