Re: [Python] Gestione tastiera.

2009-10-20 Per discussione Marco Fochesato
a = raw_input("Dimmi con che tasto vuoi che termini il programma: ") b = "" while b != a: b = raw_input() print "Il programma è terminato..." On mer, 2009-10-14 at 14:51 +0200, Gabriel Battaglia wrote: > Ciao. > Qualcuno potrebbe postare un frammento di codice che faccia quanto segue? > >

Re: [Python] Generalizzando: algoritmi di calcolo

2009-10-20 Per discussione Giuseppe Ottaviano
x = starts.pop(0) Se non sbaglio pop(0) è lineare, quindi rende l'algoritmo quadratico. Non sarebbe meglio usare collections.deque e pop_left? Ciao, Giuseppe___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/list