Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/08/2010, 13:48
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Cortar cadena

1.- Tienes tuplas de cadenas, no simples cadenas

2.- Acceder al ultimo elemento con indices negativos ejemplo:
Código Python:
Ver original
  1. t = (u'Sun Aug 1 18:47:33 2010', u'Su busqueda fue: HARDWARE>IMPRESORAS>LOCAL', u'Busqueda por enlaces', u'LOCAL')
  2. print t[-1]

3.- Si todas las tuplas son del mismo tamaña entonces:
Código Python:
Ver original
  1. t = (u'Sun Aug 1 18:47:33 2010', u'Su busqueda fue: HARDWARE>IMPRESORAS>LOCAL', u'Busqueda por enlaces', u'LOCAL')
  2. print t[3]