
25/07/2013, 14:58
|
 | Moderador | | Fecha de Ingreso: marzo-2005 Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 20 años Puntos: 1360 | |
Respuesta: Manipulacion de caracteres en python3 Deberías leer sobre str vs bytes
Código Python:
Ver original# Asumo que line son bytes currentline = line.strip() # Recuerda no mezclar string y bytes if not currentline or currentline.startswith(b'$') or currentline.startswith(b'\n'):
|