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

logging.INFO — nível informativo

logging.INFO é a constante 20, que identifica eventos durante o funcionamento normal do programa. Usá-la como limite aceita INFO e níveis superiores, mas exclui DEBUG.

Básico · Python 3.14; repository image, production runtime not attested
Python

logging.Logger

Um Logger com nome obtido por getLogger verifica o seu nível efetivo e filtros antes de enviar o registo.

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

LoggerAdapter.info — registo com contexto

LoggerAdapter.info regista uma mensagem INFO com o contexto do adaptador, como um identificador de pedido. Saiba em que difere o comportamento predefinido de extra de merge_extra=True.

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

logging.StreamHandler

StreamHandler escreve o texto e o terminador no fluxo indicado, por omissão sys.stderr, e chama flush.

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

logging.warning

warning regista na raiz um aviso de nível WARNING (30).

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

math.ceil

Devolve o menor inteiro maior ou igual a x.

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

math.comb

Conta escolhas de k posições entre n sem reposição nem ordem.

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

math.cos

Calcula o cosseno de um ângulo em radianos, a coordenada horizontal no círculo unitário.

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

math.e

Fornece uma aproximação em vírgula flutuante do número de Euler, base do logaritmo natural.

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

math.factorial

Calcula o fatorial de um inteiro não negativo.

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

math.floor

Devolve o maior inteiro que não excede x.

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

math.fsum

Soma números de vírgula flutuante mantendo várias somas parciais.

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

math.gcd

Devolve o máximo divisor comum não negativo de um número qualquer de inteiros.

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

math.inf

Representa o infinito positivo do tipo float.

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

math.isclose

Verifica se a diferença absoluta não excede o maior limite: tolerância absoluta ou relativa multiplicada pela maior magnitude.

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

math.isfinite

Reconhece números finitos, incluindo os dois zeros com sinal.

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

math.isinf

Deteta precisamente os infinitos positivo e negativo.

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

math.isnan

Devolve um booleano que indica se o argumento é NaN.

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

math.lcm

Calcula o mínimo múltiplo comum não negativo de inteiros.

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

math.log

Calcula o expoente a que elevar a base para obter x.

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

math.log10

Calcula o logaritmo decimal para comparar ordens de grandeza.

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

math.log2

Devolve o expoente da potência de dois correspondente a x.

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

math.nan

Fornece o valor float especial que indica a ausência de resultado numérico.

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

math.perm

Conta escolhas ordenadas de k posições entre n sem repetição.

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