This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def es_primo(numero): | |
for i in range(2, numero): | |
if numero%i == 0: | |
return False | |
return True | |
lista = [] | |
for i in range (2, 10000): | |
if es_primo(i): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.core import setup | |
setup(name="Aplicacion de ejemplo", | |
version="0.1", | |
description="Ejemplo del funcionamiento de distutils", | |
author="Raul Gonzalez", | |
author_email="zootropo en gmail", | |
url="http://mundogeek.net/tutorial-python/", | |
license="GPL", | |
scripts=["ejemplo.py"] | |
py_modules=["apoyo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import sys | |
>>> sys.path | |
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2', | |
'/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload', | |
'/usr/local/lib/python2.3/site-packages'] | |
import sys | |
sys.path.append('/www/python/') |