Salve, qualche tempo fa mi era capitata una cosa simile... Pensavo di aver
capito come funziona ma evidentemente.... Non è così.
Cosa non va in questa istruzione:
f.write("%3d\t%8s\t%8s\t%3.2f%%\t%8s\t%8s\t%3.2f%%.\r\n" % (j+1, lmb[j],
ltb[j], ltb1[j] * 100 / tpb, lmn[j], ltn[j], ltn1[j] * 100 / tpn))
Si tratta nell'ordine di: un intero, 2 stringhe, un float, 2 stringhe ed un
altro float.
L'errore prodotto è: TypeError Unsupported operand type(s) for /: 'tuple' and
'int'
GB.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python