What does '__init__.py' do in Python?

Опубликовано: 02 Февраль 2025
на канале: Tech With Tim
16,495
1k

📬 Join my Free Newsletter: https://techwithtim.net/newsletter

🎓 Get private mentorship from me: https://training.techwithtim.net

If you've read a fair amount of Python code, then you've probably seen this "__init__.py" file pop up quite a few times. It's especially common in larger Python projects. I'm going to breakdown exactly what this file is, when you should use it, and exactly how it works.

🚀 My Software Development Program: https://coursecareers.com/a/techwitht...

🎞 Video Resources 🎞
Newsletter: https://www.techwithtim.net/newsletter
DevLaunch: https://training.techwithtim.net/

⏳ Timestamps ⏳
00:00 | Understanding Modules & Packages
03:21 | Free Newsletter
04:12 | _init_ Usage
06:40 | Relative Imports & Import Errors
10:06 | Multiple Packages

Hashtags
#Python #PythonFunctions #SoftwareDevelopment


Смотрите видео What does '__init__.py' do in Python? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech With Tim 02 Февраль 2025, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16,495 раз и оно понравилось 1 тысяч людям.