[Python] errore in Codice Python

Raffaele Salmaso raffaele a salmaso.org
Mer 5 Feb 2014 11:24:33 CET


2014-02-05 Raffaele Salmaso <raffaele at salmaso.org>:
> - divisione: in py2 3/4 => 0  mentre in py3 3/4 => 1.3333
Errata corrige (visto che ho un moderatore che invece di lavorare fa
le pulci) ho ovviamente invertito gli ordini degli operandi
nell'ultimo esempio etc etc

python2 3/4 = 0
python3 3/4 = 0.75
python3 4/3 = 1.33333

(ah, cmq niente birra al moderatore che insulta dicendo che uso windows...)

:P

-- 
| Raffaele Salmaso
| http://salmaso.org
| https://bitbucket.org/rsalmaso
| http://gnammo.com


Maggiori informazioni sulla lista Python