What is the __init__ method in Python?

Publicado el: 05 septiembre 2022
en el canal de: Python Morsels
2,269
73

The __init_‍_ method is used to initialize a class in Python. This initializer method accepts self (the class instance) along with any arguments the class accepts and then performs initialization steps.

Read an article version of this video at https://pym.dev/what-is-init/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 A pointless Point class
00:40 The initializer method
02:01 Python calls ‍__init__‍ whenever a class is called
02:48 Recap


En esta página del sitio puede ver el video en línea What is the __init__ method in Python? de Duración hora minuto segunda en buena calidad , que subió el usuario Python Morsels 05 septiembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,269 veces y le gustó 73 a los espectadores. Disfruta viendo!