El 08/02/11 20:02, craf escribió:
Hola.

¿Existe alguna forma de averiguar que versión de Python está
ejecutándose, mediante un script de Python?.
Por consola se que se puede ejecutar Python -V.


>>>import sys
>>>sys.version
'2.6.6 (r266:84292, Dec 12 2010, 15:15:09) \n[GCC 4.4.5]'
>>>sys.version_info
(2, 6, 6, 'final', 0)

Saludos.

Sergio.
_______________________________________________
Python-es mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a