introduccion muy básica a python
TRANSCRIPT
![Page 1: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/1.jpg)
PYTHON 3Introducción y conceptos básicos
![Page 2: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/2.jpg)
QUÉ ES PYTHON?
• Lenguaje interpretado
• Human-friendly
• De desarrollo rápido
• Muy fácil de aprender
![Page 3: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/3.jpg)
QUÉ ES PYTHON?
• Lenguaje interpretado
• Human-friendly
• De desarrollo rápido
• Muy fácil de aprender
![Page 4: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/4.jpg)
VERSIONES
• Python 2.7.x
• Python 3.x -> Python 3.4
![Page 5: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/5.jpg)
INCONVENIENTES DE PYTHON
• No tiene multi-threading real
• La herencia y el polimorfismo es simulado
• No tiene propiedad/métodos privados
![Page 6: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/6.jpg)
INCONVENIENTES DE PYTHON
• No tiene multi-threading real
• La herencia y el polimorfismo es simulado
• No tiene propiedad/métodos privados
![Page 7: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/7.jpg)
PUNTOS FUERTES• Tratamiento de cadenas
• El framework incluye prácticamente toda la funcionalidad necesaria
• Muy bueno en tareas de red
• Gestión de paquetes muy sencilla
• Millones de paquetes y software reutilizare existente
![Page 8: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/8.jpg)
EJEMPLOS• 1 - Hola mundo
• 2 - Hola mundo bien estructurado
• 3 - Gestión de dependencias
• 4 - Virtualenvs
• 5 - Llamada a servicio REST
• 6 - Tratamiento de cadenas / ficheros
![Page 9: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/9.jpg)
COSAS CURIOSAS DE PYTHON
• Generadores/set/listas
• With …
• __dict__ de las clases
• Switch / case no existe
• null -> None
• Partials
• Diccionarios y defaultsdict
• La sentencia For… else
http://javarevisited.blogspot.com.es/2013/11/java-vs-python-which-programming-laungage-to-learn-first.html
![Page 10: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/10.jpg)
MEJORAS PYTHON 3• Estabilidad
• Diseño
• Rendimiento por defecto
• Nuevas librerías nativas
• AsyncIO
![Page 11: Introduccion muy básica a Python](https://reader031.vdocumento.com/reader031/viewer/2022020307/55cd754fbb61ebb10e8b45d5/html5/thumbnails/11.jpg)
LIBRERÍAS MÁS USADAS• Django
• Celery
• SQL Alchemy
• Lxml
• Scrapy
• pytest
• NTLK
• BeautifulSoup
• Pillow
• Scapy
• cython
• Mongo/TinyDB/Codernity