Python/Numeri: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 40:
<source lang=python>
from __future__ import division
</source>
 
A questo punto anche Python 2.x si comporta come Python 3.x:
 
<source lang=python>
>>> 7/2
3.5
>>> 6/2
3.0
</source>