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

heapq.merge

Fusiona fuentes ordenadas en un iterador que obtiene datos según se necesitan.

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

heapq.nlargest

Selecciona hasta n elementos originales por clave descendente para una clasificación.

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

heapq.nsmallest

Devuelve hasta n elementos originales por clave ascendente, por ejemplo las ofertas más baratas.

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

io.BufferedIOBase

Esta clase define la interfaz de los flujos binarios con búfer.

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

io.BytesIO

BytesIO mantiene datos binarios en memoria con el cursor inicialmente en cero.

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

io.StringIO

StringIO guarda texto Unicode en memoria y acepta str en write().

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

io.TextIOBase

TextIOBase define la interfaz de los flujos de texto que trabajan con str.

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

iterator.__next__

El método del iterador devuelve el siguiente elemento y lanza StopIteration al agotarse.

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

itertools.accumulate

Crea un iterador de resultados sucesivos de una función binaria.

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

itertools.batched

Lee elementos consecutivos en tuplas de tamaño n, con n al menos igual a 1.

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

itertools.chain

Encadena las entradas en un iterador que agota los argumentos separados por turno.

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

itertools.combinations

Elige r posiciones distintas en su orden de entrada.

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

itertools.combinations_with_replacement

Elige r posiciones con índices no decrecientes y permite repetir posición.

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

itertools.compress

Selecciona datos emparejados con un selector de valor verdadero.

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

itertools.count

Crea un iterador numérico infinito desde start sumando step.

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

itertools.cycle

Emite y guarda cada elemento en la primera pasada.

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

itertools.dropwhile

Omite los elementos iniciales cuyo predicado es verdadero.

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

itertools.filterfalse

Selecciona los elementos originales cuyo predicado tiene valor falso.

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

itertools.groupby

Agrupa elementos adyacentes de clave igual y devuelve la clave junto a un iterador de grupo.

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

itertools.islice

Selecciona posiciones de un iterador bajo demanda.

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

itertools.pairwise

Forma pares de elementos vecinos.

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

itertools.permutations

Genera tuplas ordenadas sin reutilizar una misma posición.

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

itertools.product

Forma el producto cartesiano con un elemento de cada entrada.

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

itertools.repeat

Devuelve el mismo objeto en cada lectura.

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