Python @staticmethod vs @classmethod - What's the difference?

Опубликовано: 15 Март 2022
на канале: k0nze
18,898
573

In this video, I explain the difference between the Python staticmethod and classmethod class decorators. Additionally, you will learn why Python functions are first-class objects and how to use decorators in Python.

⏬ Python Cheat Sheets: https://k0nze.gumroad.com
👉 Website Article for this Video: https://k0nze.dev/posts/python-static...

💌 Support me on Patreon:   / k0nze  
☕️ Buy me Coffee: https://www.buymeacoffee.com/k0nze
🌍 Check out my Website: https://k0nze.dev
💻 Join our Discord: https://discord.k0nze.dev
👔 Follow me on LinkedIn: https://linkedin.k0nze.dev

Recording Gear
Camera - Sony A6400: https://geni.us/zRw1
Lens - Viltrox AF 23mm f1.4: https://geni.us/RVrguGd
Microphone - Rode Wireless Go: https://geni.us/RBAOIx
Keyboard - Keychron K2 v2: https://geni.us/DPK87Xn

⏰ Timestamps:
0:00 Intro
0:30 Python functions are first-class objects
0:47 Python higher-order functions
2:05 Python functions inside functions
3:46 Introduction to Python decorators
4:52 Python @staticmethod
7:32 Python @classmethod
9:53 Summary


На этой странице сайта вы можете посмотреть видео онлайн Python @staticmethod vs @classmethod - What's the difference? длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь k0nze 15 Март 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 18,898 раз и оно понравилось 573 зрителям. Приятного просмотра!