[Python-es] Post: problemas con un string

Diego Uribe Gamez diego.uribe.gamez en gmail.com
Jue Mayo 30 20:31:49 CEST 2013


el replace funciono, muchas gracias.


El 30 de mayo de 2013 13:24, Diego Uribe Gamez
<diego.uribe.gamez en gmail.com>escribió:

> muy bueno, y el + como lo quitarías?
>
>
> El 30 de mayo de 2013 13:17, Manuel A. Estevez Fernandez <
> stvzito en gmail.com> escribió:
>
> Prueba con
>>
>> import urllib
>> urllib.unquote(fecha)
>> '30/05/2013+00:00:00'
>>
>> by:
>>
>> ISC. Manuel Alejandro Estévez Fernández
>>
>>
>>
>> El 30 de mayo de 2013 13:00, Diego Uribe Gamez <
>> diego.uribe.gamez en gmail.com> escribió:
>>
>>>  estoy enviando un string al servidor por Post pero cuando llega me
>>> sale mal escrita, como la arreglo usando python?
>>>
>>> fecha = '30%2F05%2F2013+00%3A00%3A00'
>>>
>>> intente hacer replace pero no funciona:
>>>
>>> fecha.replace('%2F','/')
>>>
>>> la idea es que quede así: '30/05/2013 00:00:00'
>>>
>>> --
>>>   *Diego Alonso Uribe Gamez*
>>> ------------------------------
>>>
>>> *Desarrollador web*
>>>
>>> Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>
>>>
>>> Google+: http://gplus.to/diegoug
>>> ------------------------------
>>>
>>>
>>> _______________________________________________
>>> Python-es mailing list
>>> Python-es en python.org
>>> http://mail.python.org/mailman/listinfo/python-es
>>> FAQ: http://python-es-faq.wikidot.com/
>>>
>>>
>>
>> _______________________________________________
>> Python-es mailing list
>> Python-es en python.org
>> http://mail.python.org/mailman/listinfo/python-es
>> FAQ: http://python-es-faq.wikidot.com/
>>
>>
>
>
> --
>   *Diego Alonso Uribe Gamez*
> ------------------------------
>
> *Desarrollador web*
>
> Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>
>
> Google+: http://gplus.to/diegoug
> ------------------------------
>
>


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

*Desarrollador web*

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

Google+: http://gplus.to/diegoug
------------------------------
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20130530/df2e3aab/attachment.html>


Más información sobre la lista de distribución Python-es