El registro de acciones va a estar implementado en MongoDB
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
[uWSGI] getting INI configuration from /opt/baseline-web/current/baseline.ini | |
*** WARNING: Can't find section "uwsgi" in INI configuration file /opt/baseline-web/current/baseline.ini *** | |
Thu Aug 24 22:07:41 2017 - *** Starting uWSGI 2.0 (64bit) on [Thu Aug 24 22:07:41 2017] *** | |
Thu Aug 24 22:07:41 2017 - compiled with version: 4.8.4 on 15 August 2017 23:11:25 | |
Thu Aug 24 22:07:41 2017 - os: Linux-3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 | |
Thu Aug 24 22:07:41 2017 - nodename: baseline | |
Thu Aug 24 22:07:41 2017 - machine: x86_64 | |
Thu Aug 24 22:07:41 2017 - clock source: unix | |
Thu Aug 24 22:07:41 2017 - detected number of CPU cores: 1 | |
Thu Aug 24 22:07:41 2017 - current working directory: /opt/baseline-web/current |
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
// Estructura condicional anidada : Ejercicio #1 | |
Proceso estructuraCondA1 | |
Definir unidadesAdquiridas como Entero; | |
Definir precioUnitario * , descuentoUnitario, importeCompra, importeDescuento, importePagar como Real; | |
Escribir "- Ingrese la cantidad de unidades adquiridas:"; | |
// Entrada | |
Leer unidadesAdquiridas; | |
// Proceso | |
Si unidadesAdquiridas >= 1 & unidadesAdquiridas <= 25 entonces |
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
// Estructura repetitiva Para : Ejercicio #2 | |
Proceso estructuraRepetP2 | |
Definir cantidadAsistentes, edadAsistente como Entero; | |
Definir precio, categoria1, categoria2, categoria3, categoria4, categoria5 como Real; | |
categoria1 <- 0; | |
categoria2 <- 0; | |
categoria3 <- 0; | |
categoria4 <- 0; | |
categoria5 <- 0; | |
Escribir " --- Ingrese la cantidad de asistentes"; |
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
class Device: | |
def __init__(self,d_type,brand): | |
self.d_type = d_type | |
self.brand = brand | |
def resume(self): | |
print(f"El dispositivo {self.d_type} de la marca {self.brand} funciona correctamente") | |
class Mouse(Device): | |
def __init__(self,d_type,brand,is_wireless): |
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
# De un listado de personas, | |
# imprimir los nombres de las personas que son mayores de edad | |
# Como voy a recibir los datos? | |
# voy a mandarte los datos por consola o los puedes leer por un archivo de texto | |
# Vamos a recibir las edades, los nombres | |
# Parametros de entrada : Listado de personas [('Benjy', 27), ('Rosa', 6)] | |
# Parametro de salida : Listado de los nombres de las personas que son mayores de edad ['Benjy'] |
- 1,ALTAMIRANO ARIAS,MIGUEL ANGEL
- 2,CORONADO GUERRERA,ENRIQUE
- 3,DIAZ OBLITAS,ITALO ANDRE
- 4,FRANCIA FRANCIA,LUIS ANTHONY HAROLD
- 5,LAURENTE MOLINA,JASTON
- 6,NAPANGA PARIONA,VALENTIN RONALD
- 7,OSCCO MORI,JUAN CARLOS
- 8,PAUCARPURA RODRIGUEZ,ELMER KAFU
- 9
- 10,REÁTEGUI HUAMÁN,DAVID
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 metodo_estatico(argumento): | |
print(argumento) | |
class Clase1: | |
atributo_1 = None | |
def __init__(self, *args): | |
self.atributo_1 = args[0] |
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
# Metodos a secas -> Es necesario llamar al constructor. Se hacen sobre objetos. | |
# Metodos Estaticos -> Se llaman a nivel de clase. No se tiene una referencia ni a la clase, ni al objeto. | |
# Metodos de Clase -> Se llaman tambien a nivel de clase, pero si se tiene una referencia a la clases. Las clases pueden tener atributos, ya que son objetos. | |
class Clase1: | |
def __init__(self, argumento_1): | |
self.atributo = argumento_1 | |
def cambiar_atributo(self, nuevo_valor): |