Base de conhecimentoCentro de Exames
PT · PTPortuguês (Portugal)
Escolher idioma13

CKTIS / Python

Base de conhecimento — Python

Sintaxe, operadores e conceitos de programação. Encontra uma explicação, consulta um exemplo e continua a aprender.

Entradas: 583

Python

heapq.merge

Intercala fontes ordenadas num iterador que lê os dados conforme necessário.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

heapq.nlargest

Seleciona até n elementos originais por ordem decrescente da chave para uma classificação.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

heapq.nsmallest

Devolve até n elementos originais por chave crescente, por exemplo as propostas mais baratas.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

io.BufferedIOBase

A classe base descreve os fluxos binários com memória intermédia.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

io.BytesIO

BytesIO guarda dados binários em memória com o cursor inicialmente a zero.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

io.StringIO

StringIO guarda texto Unicode em memória e aceita str na escrita.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

io.TextIOBase

TextIOBase define a interface dos fluxos de texto que trabalham com str.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

iterator.__next__

O método do iterador devolve o elemento seguinte e lança StopIteration ao esgotar-se.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.accumulate

Cria um iterador dos resultados sucessivos de uma função binária.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.batched

Lê elementos consecutivos em tuplos de tamanho n, sendo n pelo menos 1.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.chain

Encadeia as entradas num iterador que esgota por ordem os argumentos separados.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.combinations

Escolhe r posições diferentes pela ordem de entrada.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.combinations_with_replacement

Escolhe r posições com índices não decrescentes e permite repetir uma posição.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.compress

Seleciona os dados emparelhados com um seletor de valor verdadeiro.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.count

Cria um iterador numérico infinito a partir de start somando step.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.cycle

Emite e guarda cada elemento na primeira passagem.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.dropwhile

Ignora os elementos iniciais para os quais o predicado é verdadeiro.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.filterfalse

Seleciona os elementos originais cujo predicado tem valor falso.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.groupby

Agrupa elementos adjacentes de chave igual e devolve a chave com um iterador do grupo.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.islice

Seleciona posições de um iterador a pedido.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.pairwise

Forma pares de elementos vizinhos.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.permutations

Gera tuplos ordenados sem reutilizar a mesma posição.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.product

Forma o produto cartesiano com um elemento de cada entrada.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

itertools.repeat

Devolve o mesmo objeto em cada leitura.

Intermédio · Python 3.14; repository image, production runtime not attested