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

anext()

Chiama `__anext__` e restituisce un oggetto da attendere con await.

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

any()

Verifica se almeno un elemento ha valore vero.

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

ascii()

Restituisce una rappresentazione come repr con escape per i caratteri non ASCII.

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

bin()

Scrive un intero in base due come stringa con prefisso 0b.

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

bool()

Restituisce il valore logico di un oggetto.

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

breakpoint()

Chiama il sys.breakpointhook corrente con gli argomenti dati e ne restituisce il risultato.

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

bytearray()

Crea un array modificabile di byte.

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

bytes()

Crea una sequenza immutabile di byte.

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

callable()

Verifica se l’oggetto è chiamabile, ad esempio una funzione, una classe o un’istanza il cui tipo definisce `__call__`.

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

chr()

Crea una stringa di un carattere da un punto di codice intero da 0 a 0x10ffff inclusi.

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

classmethod()

Associa la classe come primo argomento all’accesso al metodo, anche da un’istanza.

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

compile()

Compila testo, byte o un AST per la modalità scelta.

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

complex()

Crea un complesso da due componenti reali o interpreta una singola stringa.

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

delattr()

Elimina l’attributo indicato secondo le regole di `__delattr__` e restituisce None se riesce.

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

dict()

Costruisce un dizionario da una mappatura, coppie chiave-valore o argomenti per nome.

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

dir()

Restituisce una lista ordinata di nomi per l’ispezione interattiva.

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

divmod()

Per gli interi restituisce una tupla con il quoziente arrotondato verso il basso e il resto.

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

enumerate()

Crea un iteratore di coppie contatore–elemento che conta da zero per default.

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

eval()

Per il testo sorgente valuta un’espressione negli spazi dei nomi forniti.

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

exec()

Esegue istruzioni affidabili o un oggetto codice compilato e restituisce None.

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

filter()

Seleziona gli elementi originali il cui predicato dà un valore vero.

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

float()

Crea un numero in virgola mobile da un numero o una stringa.

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

format()

Restituisce una stringa tramite `__format__` del tipo del valore.

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

frozenset()

Crea un insieme immutabile che può fungere da chiave di dizionario.

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