Base de conocimientosCentro de exámenes
ESEspañol
Elegir idioma13

CKTIS / Python

Base de conocimientos — Python

Sintaxis, operadores y conceptos de programación. Encuentra una explicación, consulta un ejemplo y sigue aprendiendo.

Entradas: 583

Python

logging.INFO — nivel informativo

logging.INFO es la constante 20, que identifica eventos durante el funcionamiento normal del programa. Usarla como umbral admite INFO y los niveles superiores, pero excluye DEBUG.

Básico · Python 3.14; repository image, production runtime not attested
Python

logging.Logger

Un Logger con nombre obtenido por getLogger comprueba su nivel efectivo y filtros antes de enviar el registro.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

LoggerAdapter.info — registro con contexto

LoggerAdapter.info registra un mensaje INFO con el contexto del adaptador, como un identificador de solicitud. Descubre en qué se diferencia el comportamiento predeterminado de extra de merge_extra=True.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

logging.StreamHandler

StreamHandler escribe texto y terminador en el flujo indicado, por defecto sys.stderr, y llama a flush.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

logging.warning

warning registra en el registrador raíz un aviso de nivel WARNING (30).

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.ceil

Devuelve el menor entero mayor o igual que x.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.comb

Cuenta selecciones de k posiciones entre n sin reposición ni orden.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.cos

Calcula el coseno de un ángulo en radianes, la coordenada horizontal sobre el círculo unidad.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.e

Proporciona una aproximación en coma flotante del número de Euler, base del logaritmo natural.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.factorial

Calcula el factorial de un entero no negativo.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.floor

Devuelve el mayor entero que no supera x.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.fsum

Suma números de coma flotante conservando varias sumas parciales.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.gcd

Devuelve el máximo común divisor no negativo de cualquier cantidad de enteros.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.inf

Representa el infinito positivo de tipo float.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.isclose

Comprueba si la diferencia absoluta no supera el mayor límite: tolerancia absoluta o relativa multiplicada por la mayor magnitud.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.isfinite

Reconoce números finitos, incluidos ambos ceros con signo.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.isinf

Detecta exactamente los infinitos positivo y negativo.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.isnan

Devuelve un booleano que indica si el argumento es NaN.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.lcm

Calcula el mínimo común múltiplo no negativo de enteros.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.log

Calcula el exponente al que elevar la base para obtener x.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.log10

Calcula el logaritmo decimal para comparar órdenes de magnitud.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.log2

Devuelve el exponente de la potencia de dos correspondiente a x.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.nan

Proporciona el valor float especial que indica la ausencia de resultado numérico.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

math.perm

Cuenta selecciones ordenadas de k posiciones entre n sin repetición.

Intermedio · Python 3.14; repository image, production runtime not attested