Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| info:cursos:udemy:python-mega-course [09/10/2024 05:21] – [Cheatsheet: File Processing] mate | info:cursos:udemy:python-mega-course [18/10/2024 04:12] (actual) – [Curso python udemy] mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| = Curso python udemy | = Curso python udemy | ||
| + | * [[https:// | ||
| + | == interesante | ||
| + | * Numpy: manejo de matrices | ||
| + | * Web Mapping: creación mapas interactivos HTML | ||
| + | * Manejo Webcam | ||
| + | * Bokeh: libreria representación gráficos -> [[development: | ||
| + | * Pandas: libreria de analisis de datos -> [[development: | ||
| + | * Flask: web development | ||
| + | * openCV: image processing library | ||
| + | * Mobile app: apk | ||
| + | * Web Scraping | ||
| + | * pyinstaller: | ||
| + | |||
| + | == jupyter notebook | ||
| + | * <code bash> | ||
| + | * <code bash> | ||
| + | * <code bash> | ||
| == Cheatsheet: Data Types | == Cheatsheet: Data Types | ||
| * Integers are used to represent whole numbers:< | * Integers are used to represent whole numbers:< | ||
| Línia 299: | Línia 316: | ||
| pip3 install pandas # or use | pip3 install pandas # or use | ||
| python3 -m pip install pandas # if that doesn' | python3 -m pip install pandas # if that doesn' | ||
| + | </ | ||
| + | |||
| + | == Flask | ||
| + | <code bash>pip install Flask</ | ||
| + | |||
| + | <code python script1.py> | ||
| + | from flask import Flask, render_template | ||
| + | |||
| + | app=Flask(__name__) | ||
| + | |||
| + | @app.route("/" | ||
| + | def home(): | ||
| + | return render_template(" | ||
| + | |||
| + | @app.route("/ | ||
| + | def about(): | ||
| + | return render_template(" | ||
| + | |||
| + | if __name__==" | ||
| + | app.run(debug=True) | ||
| + | </ | ||
| + | |||
| + | <code html templates/ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <link rel=" | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | <div class=" | ||
| + | <h1 class=" | ||
| + | <ul class=" | ||
| + | < | ||
| + | < | ||
| + | </u1> | ||
| + | </ | ||
| + | </ | ||
| + | <div class=" | ||
| + | {%block content%} | ||
| + | {%endblock%} | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <code html templates/ | ||
| + | {%extends " | ||
| + | {%block content%} | ||
| + | < | ||
| + | {%endblock%} | ||
| + | </ | ||
| + | |||
| + | <code html templates/ | ||
| + | {%extends " | ||
| + | {%block content%} | ||
| + | < | ||
| + | {%endblock%} | ||
| + | </ | ||
| + | |||
| + | <code css static/ | ||
| + | body { | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | font-family: | ||
| + | color: #060; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | * Formatting the header area | ||
| + | */ | ||
| + | |||
| + | header { | ||
| + | background-color: | ||
| + | height: 35px; | ||
| + | width: 100%; | ||
| + | opacity: .9; | ||
| + | margin-bottom: | ||
| + | } | ||
| + | |||
| + | header h1.logo { | ||
| + | margin: 0; | ||
| + | font-size: 1.7em; | ||
| + | color: #fff; | ||
| + | text-transform: | ||
| + | float: left; | ||
| + | } | ||
| + | |||
| + | header h1.logo: | ||
| + | color: #fff; | ||
| + | text-decoration: | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | * Center the body content | ||
| + | */ | ||
| + | |||
| + | .container { | ||
| + | width: 1200px; | ||
| + | margin: 0 auto; | ||
| + | } | ||
| + | |||
| + | div.home { | ||
| + | padding: 10px 0 30px 0; | ||
| + | background-color: | ||
| + | -webkit-border-radius: | ||
| + | | ||
| + | border-radius: | ||
| + | } | ||
| + | |||
| + | div.about { | ||
| + | padding: 10px 0 30px 0; | ||
| + | background-color: | ||
| + | -webkit-border-radius: | ||
| + | | ||
| + | border-radius: | ||
| + | } | ||
| + | |||
| + | h2 { | ||
| + | font-size: 3em; | ||
| + | margin-top: 40px; | ||
| + | text-align: center; | ||
| + | letter-spacing: | ||
| + | } | ||
| + | |||
| + | h3 { | ||
| + | font-size: 1.7em; | ||
| + | font-weight: | ||
| + | margin-top: 30px; | ||
| + | text-align: center; | ||
| + | letter-spacing: | ||
| + | color: #999; | ||
| + | } | ||
| + | |||
| + | .menu { | ||
| + | float: right; | ||
| + | margin-top: 8px; | ||
| + | } | ||
| + | |||
| + | .menu li { | ||
| + | display: inline; | ||
| + | } | ||
| + | |||
| + | .menu li + li { | ||
| + | margin-left: | ||
| + | } | ||
| + | |||
| + | .menu li a { | ||
| + | color: #444; | ||
| + | text-decoration: | ||
| + | } | ||
| + | |||
| </ | </ | ||