2011/1/3 Dalbosco Filippo <[email protected]> Esite qualche funzione fatta o devo scrivere tutto da zero? >
Non so.
def japdate(s):
month, year = s.split()
return '%s%02d' % (year, [
'GENNAIO', 'FEBBRAIO', 'MARZO', 'APRILE',
'MAGGIO', 'GIUGNO', 'LUGLIO', 'AGOSTO',
'SETTEMBRE', 'OTTOBRE', 'NOVEMBRE', 'DICEMBRE',
].index(month.upper())+1)
Ora esiste :)
_______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
