Tuttofaredigitale.it
Tutorial
HTML & CSSJavaScriptLinuxPythonSQL
Blog
Funzioni built-in
Python abs()
Python all()
Python any()
Python bin()
Python bool()
Python bytearray()
Python bytes()
Python callable()
Python chr()
Python classmethod()
Python compile()
Python complex()
Python delattr()
Python dict()
Python dir()
Python divmod()
Python enumerare()
Python eval()
Python exec()
Python filter()
Python float()
Python format()
Python frozenset()
Python getattr()
Python globals()
Python hasattr()
Python hash()
Python hex()
Python id()
Python input()
Python int()
Python isinstance()
Python issubclass()
Python iter()
Python len()
Python list()
Python locals()
Python map()
Python max()
Python memoryview()
Python min()
Python next()
Python object()
Python oct()
Python open()
Python ord()
Python pow()
Python print()
Python property()
Python range()
Python repr()
Python reversed()
Python round()
Python set()
Python setattr()
Python slice()
Python sorted()
Python staticmethod()
Python str()
Python sum()
Python super()
Python tuple()
Python type()
Python vars()
Python zip()
Python Tutorial >
Funzioni built-in

Python id()

La funzione id() restituisce l'identità (numero intero unico) di un oggetto. Questo è un numero intero che è unico per l'oggetto dato e rimane costante durante la sua vita.

La sintassi di id() è:

id(oggetto)

id() prende un singolo oggetto parametro.

class Macaco:
   c = 8

cMacaco = Macaco()

print('L\'id di cMacaco è: ',id(cMacaco))

Output del codice

L'id di cMacaco è:  139706566899216
NordVPN Naviga velocemente ed in tutta sicurezza

Informazioni

Canale YouTube
  • BlogContatti

Tutorial

  • HTML & CSS
  • JavaScript
  • Linux
  • Python
  • SQL

Termini & Co.

  • Privacy PolicyCookies Policy
© 2023 tuttofaredigitale.it - Cliccando sui link di Amazon una somma di denaro viene corrisposta dagli acquisti idonei.