c'était une erreur, mais ça ne rend pas ton initialisation moins buggée
Fais le test toi même:
Code :
>> mat = [[None]*10]*10 >> mat [0][0] = 3 >> print mat
|
J'pense que tu vas avoir une surprise ![[:grinking] [:grinking]](https://forum-images.hardware.fr/images/perso/grinking.gif)
Message édité par masklinn le 15-06-2006 à 16:54:08
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?