On 11/19/2014 08:43 PM, Simone Federici wrote:
anche la chiusura del file in input dovrebbe andare alla fine
Per la chiusura dei file, suggerirei di usare il costrutto with:

with open(filein, 'r') as fin, open(writeto + fileout, "w") as fou:
    #resto del codice

Enrico
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a