On 07/03/2008, andrea lucaroni <[EMAIL PROTECTED]> wrote:
>
> Ciao a tutti
> scusa esiste qualcosa di simile in python del comando il perl:
> system("....comandi di schell .....");
>

Ciao... direi che il codice qui sotto si spiega da solo :))

import os

if os.name == "nt":
    command = "dir"
else:
    command = "ls -l"

os.system(command)



-- 
Sappiamo ciò che siamo, ma non sappiamo ciò che potremmo essere.
(Ofelia - W. Shakespeare)
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a