When it comes to creating new classes, you can call the type() function directly or use the class statement. All instances are connected to the class they came from, and their namespaces falls back to the class. I also discuss when it is appropriate to use classes in Python and when it is not.
Join me on Discord: / discord
Support me by buying from Amazon through my affiliate link: https://amzn.to/2FBNVwA
Here's my Patreon account if you want to give me money: / realphysics
Other ways to support Real Physics: • How to Support Real Physics
Playlist: • Theory of Python
Thank you!
На этой странице сайта вы можете посмотреть видео онлайн Creating New Types (Classes) (Theory of Python) (Python Tutorial) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Real Physics 06 Ноябрь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,923 раз и оно понравилось 70 зрителям. Приятного просмотра!