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

anext()

Chama `__anext__` e devolve um objeto para aguardar com await.

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

any()

Verifica se pelo menos um elemento tem valor verdadeiro.

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

ascii()

Devolve uma representação como repr e escapa os carateres fora de ASCII.

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

bin()

Escreve um inteiro em base dois como cadeia com prefixo 0b.

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

bool()

Devolve o valor lógico de um objeto.

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

breakpoint()

Chama o sys.breakpointhook atual com os argumentos fornecidos e devolve o resultado.

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

bytearray()

Cria um vetor mutável de bytes.

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

bytes()

Cria uma sequência imutável de bytes.

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

callable()

Verifica se o objeto pode ser chamado, por exemplo uma função, uma classe ou uma instância cujo tipo define `__call__`.

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

chr()

Cria uma cadeia de um caráter a partir de um ponto de código inteiro entre 0 e 0x10ffff inclusive.

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

classmethod()

Associa a classe como primeiro argumento ao aceder ao método, mesmo através de uma instância.

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

compile()

Compila texto, bytes ou uma AST para o modo escolhido.

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

complex()

Cria um complexo a partir de duas componentes reais ou interpreta uma única cadeia.

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

delattr()

Remove o atributo indicado segundo as regras de `__delattr__` e devolve None se tiver êxito.

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

dict()

Cria um dicionário a partir de um mapeamento, pares chave-valor ou argumentos por nome.

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

dir()

Devolve uma lista ordenada de nomes para inspeção interativa.

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

divmod()

Para inteiros devolve um tuplo com o quociente arredondado para baixo e o resto.

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

enumerate()

Cria um iterador de pares contador–elemento, contando por predefinição desde zero.

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

eval()

Para texto de origem avalia uma expressão nos espaços de nomes fornecidos.

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

exec()

Executa instruções de confiança ou um objeto de código compilado e devolve None.

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

filter()

Seleciona os elementos originais cujo predicado dá um valor verdadeiro.

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

float()

Cria um número de vírgula flutuante a partir de um número ou de texto.

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

format()

Devolve uma cadeia por `__format__` do tipo do valor.

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

frozenset()

Cria um conjunto imutável que pode servir de chave num dicionário.

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