Base di conoscenzaCentro esami
ITItaliano
Scegli la lingua13

CKTIS / Python

Base di conoscenza — Python

Sintassi, operatori e concetti di programmazione. Trova una spiegazione, consulta un esempio e torna a imparare.

Voci: 583

Python

logging.INFO — livello informativo

logging.INFO è la costante 20, che identifica gli eventi durante il normale funzionamento del programma. Usarla come soglia ammette INFO e i livelli superiori, ma esclude DEBUG.

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

logging.Logger

Un Logger con nome ottenuto da getLogger controlla livello effettivo e filtri prima di inviare il record.

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

LoggerAdapter.info — logging contestuale

LoggerAdapter.info registra un messaggio INFO con il contesto dell’adattatore, ad esempio un identificativo della richiesta. Scopri la differenza tra la gestione predefinita di extra e merge_extra=True.

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

logging.StreamHandler

StreamHandler scrive testo e terminatore nel flusso fornito, per impostazione predefinita sys.stderr, e chiama flush.

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

logging.warning

warning registra sul logger radice un avviso di livello WARNING (30).

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

math.ceil

Restituisce il più piccolo intero maggiore o uguale a x.

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

math.comb

Conta le scelte di k posizioni tra n senza reinserimento né ordine.

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

math.cos

Calcola il coseno di un angolo in radianti, la coordinata orizzontale sulla circonferenza unitaria.

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

math.e

Fornisce un’approssimazione in virgola mobile del numero di Eulero, base del logaritmo naturale.

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

math.factorial

Calcola il fattoriale di un intero non negativo.

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

math.floor

Restituisce il più grande intero che non supera x.

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

math.fsum

Somma numeri in virgola mobile mantenendo più somme parziali.

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

math.gcd

Restituisce il massimo comune divisore non negativo di un numero qualsiasi di interi.

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

math.inf

Rappresenta l’infinito positivo di tipo float.

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

math.isclose

Verifica che la differenza assoluta non superi il limite maggiore: tolleranza assoluta oppure relativa moltiplicata per il modulo maggiore.

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

math.isfinite

Riconosce i numeri finiti, inclusi entrambi gli zeri con segno.

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

math.isinf

Rileva esattamente gli infiniti positivo e negativo.

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

math.isnan

Restituisce un booleano che indica se l’argomento è NaN.

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

math.lcm

Calcola il minimo comune multiplo non negativo di interi.

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

math.log

Calcola l’esponente a cui elevare la base per ottenere x.

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

math.log10

Calcola il logaritmo decimale per confrontare ordini di grandezza.

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

math.log2

Restituisce l’esponente della potenza di due corrispondente a x.

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

math.nan

Fornisce il valore float speciale che segnala l’assenza di un risultato numerico.

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

math.perm

Conta le scelte ordinate di k posizioni tra n senza ripetizione.

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