Grazie mile ad entrambi!<br><br>stefano664<br><br><div class="gmail_quote">2010/3/22 Lorenzo Macchiavelli <span dir="ltr"><<a href="mailto:lmacchiavelli@gmail.com">lmacchiavelli@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ciao, Prova Con:<br><br> import os<br> if <a href="http://os.name/" target="_blank">os.name</a> == "posix":<br>
# Unix/Linux/MacOS/BSD/etc<br> os.system('clear')<br> elif <a href="http://os.name/" target="_blank">os.name</a> in ("nt", "dos", "ce"):<br> #
DOS/Windows<br> os.system('CLS')<br> else:<br> #
Fallback for other operating systems.<br> print '\n' * numlines<br><br><br clear="all">Lorenzo Macchiavelli<br>
<br><br><div class="gmail_quote">Il giorno 22 marzo 2010 12.29, Sandro Tosi <span dir="ltr"><<a href="mailto:matrixhasu@gmail.com" target="_blank">matrixhasu@gmail.com</a>></span> ha scritto:<div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2010/3/22 stefano664 <<a href="mailto:stefano664@gmail.com" target="_blank">stefano664@gmail.com</a>>:<br>
<div>> "Come faccio una<br>
> routine per capire da che sistema operativo sto interpretando il codice?".<br>
<br>
</div>$ ipython<br>
<br>
In [1]: import platform<br>
<br>
In [2]: platform.system()<br>
Out[2]: 'Linux'<br>
<br>
spero che su win ritorni "Windows" (non ho macchine dove provare).<br>
<br>
Ciao,<br>
<font color="#888888">--<br>
Sandro Tosi (aka morph, morpheus, matrixhasu)<br>
My website: <a href="http://matrixhasu.altervista.org/" target="_blank">http://matrixhasu.altervista.org/</a><br>
Me at Debian: <a href="http://wiki.debian.org/SandroTosi" target="_blank">http://wiki.debian.org/SandroTosi</a><br>
_______________________________________________<br>
Python mailing list<br>
<a href="mailto:Python@lists.python.it" target="_blank">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/mailman/listinfo/python</a><br>
</font></blockquote></div></div></div><br>
<br>_______________________________________________<br>
Python mailing list<br>
<a href="mailto:Python@lists.python.it">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/mailman/listinfo/python</a><br>
<br></blockquote></div><br>