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

collections.OrderedDict

Conserva el orden de las claves y permite mover entradas existentes.

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

contextlib.AbstractContextManager

La clase base para with síncrono proporciona `__enter__`, que devuelve el gestor.

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

contextlib.aclosing

Encierra un objeto con aclose() en un ámbito async with.

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

contextlib.asynccontextmanager

Convierte una función generadora asíncrona en fábrica para async with.

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

contextlib.AsyncExitStack

Apila limpiezas síncronas y asíncronas en orden LIFO.

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

contextlib.closing

Permite usar with con un recurso que ofrece close() síncrono.

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

contextlib.ContextDecorator

Permite usar como decorador un gestor que implementa `__enter__` y `__exit__`.

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

contextlib.contextmanager

Decora una función generadora con un único yield como fábrica de gestores with de un solo uso.

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

contextlib.ExitStack

Gestiona una cantidad variable de recursos elegidos en ejecución.

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

contextlib.nullcontext

Sustituye un gestor opcional y entrega enter_result al entrar, por defecto None.

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

contextlib.redirect_stderr

Vincula temporalmente sys.stderr a un destino escribible y lo entrega mediante as.

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

contextlib.redirect_stdout

Captura la salida de print sustituyendo temporalmente sys.stdout.

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

contextlib.suppress

Suprime excepciones de las clases y subclases indicadas y continúa tras el bloque.

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

cProfile.Profile

Un objeto Profile recopila estadísticas de llamadas y runcall devuelve el resultado habitual de la función.

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

cProfile.run

run perfila instrucciones en el espacio de nombres del módulo principal.

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

cProfile.runctx

runctx perfila instrucciones con el diccionario global y la correspondencia de nombres locales indicados.

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

csv.Dialect

Agrupa opciones CSV en un dialecto reutilizable para lectura y escritura.

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

csv.DictReader

Lee registros como diccionarios en el orden de las columnas.

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

csv.DictWriter

Escribe diccionarios en un flujo de texto en el orden de los fieldnames obligatorios.

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

csv.reader

Lee un iterable de líneas de texto y produce listas de campos.

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

csv.Sniffer

Deduce el dialecto de una muestra representativa de texto.

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

csv.writer

Escribe filas de campos en un flujo de texto con write().

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

dataclasses.asdict

Convierte una instancia de clase de datos en un diccionario de nombres y valores mediante dict_factory.

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