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

itertools.starmap

Espande ogni riga in argomenti posizionali della funzione al momento della lettura.

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

itertools.takewhile

Emette gli elementi iniziali finché il predicato è vero.

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

itertools.tee

Crea per impostazione predefinita due iteratori con posizioni distinte su un’unica sorgente.

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

itertools.zip_longest

Abbina posizioni corrispondenti fino a esaurire l’ingresso più lungo.

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

list.append

Aggiunge esattamente un oggetto alla fine della lista esistente.

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

list.clear

Rimuove tutti gli elementi della lista esistente e restituisce None.

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

list.copy

Crea una copia superficiale, cioè una lista nuova con riferimenti agli stessi elementi.

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

list.count

Conta gli elementi che sono lo stesso oggetto cercato o che risultano uguali ad esso.

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

list.extend

Aggiunge in successione gli elementi di un iterabile alla lista esistente.

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

list.index

Restituisce l’indice da zero del primo elemento uguale; start e stop facoltativi limitano la ricerca escludendo stop.

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

list.insert

Inserisce prima della posizione scelta limitando gli indici estremi alle posizioni disponibili per l’inserimento.

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

list.pop

Rimuove e restituisce l’elemento indicizzato.

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

list.remove

Rimuove il primo elemento che sia lo stesso oggetto cercato o che risulti uguale ad esso.

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

list.reverse

Inverte le posizioni nella lista esistente senza confrontare gli elementi.

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

list.sort

Ordina la lista sul posto e restituisce None.

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

logging.basicConfig

basicConfig imposta con level la soglia del logger radice e configura flusso e formato di uscita.

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

logging.critical

critical segnala al logger radice un evento di livello CRITICAL con valore 50.

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

logging.debug

debug invia diagnostica di livello DEBUG (10) al logger radice.

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

logging.error

error invia al logger radice un evento di livello ERROR (40).

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

logging.exception

exception registra un evento ERROR con exc_info=True per impostazione predefinita.

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

logging.Formatter

Formatter compone gli attributi del record come levelname e message in un testo.

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

logging.getLogger

getLogger restituisce lo stesso logger per un nome nell’interprete e la radice senza nome.

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

logging.info

info registra l’avanzamento normale al livello INFO (20).

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