Yann2704
Messages postés18Date d'inscriptionmardi 6 novembre 2007StatutMembreDernière intervention17 juin 2009
-
17 juin 2009 à 10:37
Yann2704
Messages postés18Date d'inscriptionmardi 6 novembre 2007StatutMembreDernière intervention17 juin 2009
-
17 juin 2009 à 11:30
Bonjours,
Python 2.6.1 ... ... Win 32 ... ...
>>> c1 = "plop"
>>> c2 = "blabla"
>>> print c1[3]
p
>>> print c2[3]
b
>>> c1[3] = c2[3]
Traceback (most recent call last:)
File "<stdin>", line 1, in <module>
TypeError: 'str' object does not support item assignment
J'aimerai remplacer un caractere d'une chaine par un d'une autre chaine.. Mais ça marche pas.. </module></stdin>
A voir également:
Typeerror: 'str' object does not support item deletion