[Python] Funzione type()

Nicola Larosa nico a tekNico.net
Mar 25 Ott 2011 10:41:20 CEST


Diego Barrera wrote:
> parametri={'file':'nome_file.csv', \
>                      'modalita':'rw', \
>                      'delimitatore_testo':"'", \
>                      'separatore_campi':',', \
>                      'nomi_colonna':'True', \
>                      'codifica_in':'latin1', \
>                      'codifica_out':'utf-8'}

AARGH! GLI OCCHI! ;-P

Leva tutti quei backslash, non servono, e datti una letta al peppotto,
grazie. :-) http://www.python.org/dev/peps/pep-0008/

parametri = {
    'file': 'nome_file.csv',
    'modalita': 'rw',
    'delimitatore_testo': "'",
    'separatore_campi': ',',
    'nomi_colonna': 'True',
    'codifica_in': 'latin1',
    'codifica_out': 'utf-8',
}

-- 
Nicola Larosa - http://www.tekNico.net/

Developing, and managing developers, are at opposite ends of the
interrupt scale. Great engineering depends on deep, uninterrupted
focus. But great management is all about handling interrupts effic-
iently so that engineers don’t have to. [...]  It’s crazy to think
that someone who loves deep focused thought should have to become
a multithreaded interrupt driven manager to advance their career.
 - Mark Shuttleworth, July 2011


Maggiori informazioni sulla lista Python