Reverse a string in Python - Stack Overflow
lundi 12 août 2013 à 13:24Ah ouai, c'est classe ! Pour avoir l'inverse d'une chaîne de caractères, en python :
>>> ma_chaine[::-1]
Rapide, simple et efficace ; très pythonique !
(Permalink)
>>> ma_chaine[::-1]
Rapide, simple et efficace ; très pythonique !
(Permalink)