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

abc.ABC

Herdar de ABC fornece o mecanismo de classes abstratas de ABCMeta.

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

abc.abstractmethod

O decorador marca um membro como abstrato nas classes que usam ABCMeta.

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

asyncio.as_completed

Processa resultados por ordem de conclusão.

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

asyncio.CancelledError

Assinala o cancelamento na próxima oportunidade de retomar a tarefa após cancel().

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

asyncio.create_task

Agenda uma corrotina no ciclo ativo e devolve uma tarefa.

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

asyncio.Event

Assinala a disponibilidade a várias tarefas do ciclo através de um indicador inicialmente desativado.

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

asyncio.Future

Liga a conclusão por função de retorno a await através de um objeto criado pelo ciclo.

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

asyncio.gather

Executa corrotinas em concorrência e após await fornece uma lista pela ordem dos argumentos.

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

asyncio.Lock

Um Lock partilhado reserva um recurso a uma tarefa do ciclo asyncio de cada vez.

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

asyncio.Queue

Passa elementos entre tarefas por ordem FIFO.

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

asyncio.run

Executa código assíncrono a partir de um ponto de entrada síncrono e devolve o resultado.

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

asyncio.Semaphore

Limita os utilizadores simultâneos de um recurso com um contador de permissões.

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

asyncio.shield

Protege a tarefa do cancelamento transmitido pelo invólucro.

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

asyncio.sleep

Suspende a tarefa atual pelo atraso em segundos e permite ao ciclo executar outro trabalho.

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

asyncio.Task

Representa uma corrotina executada cooperativamente pelo ciclo.

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

asyncio.TaskGroup

Agrupa as tarefas criadas com group.create_task num âmbito.

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

asyncio.timeout

Limita o tempo de um bloco de esperas na tarefa atual.

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

asyncio.wait

Recebe uma coleção não vazia de tarefas ou Future.

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

asyncio.wait_for

Espera por uma operação com limite em segundos ou indefinidamente com None.

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

collections.ChainMap

Reúne vários mapeamentos numa vista de configuração.

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

collections.Counter

Conta ocorrências de elementos que possam servir de chaves ou obtém as contagens iniciais de um mapeamento.

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

collections.defaultdict

Cria um dicionário útil para agrupar valores por chave.

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

collections.deque

Gere uma fila com inserções e remoções nas duas extremidades com custo aproximadamente constante.

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

collections.namedtuple

Cria uma subclasse de tuple cujos campos são acessíveis por nome ou posição.

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