Тёмный

python: what is `__main__` / `__main__.py` ? (beginner - intermediate) anthony explains  

anthonywritescode
Подписаться 40 тыс.
Просмотров 4,2 тыс.
50% 1

today I show what `__main__` means for python (the two places you'll run into it) as well as how to make modules and packages runnable with `__main__.py`!
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Наука

Опубликовано:

 

10 окт 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@DavidDellsperger
@DavidDellsperger 2 года назад
CLEARLY, if I want my link to not be blocked, just put a # in front of it, but I'll repeat my comment here, really enjoyed this video to better understand all of these crazy built-in items that we all just copy/paste continually and use, but don't necessarily understand, this along with the latest builtins blogpost (which I won't link for fear of having my comment deleted by the RU-vid overlords/algorithms) are absolutely amazing resources to better understand lower-level language behaviors.
@Ash-qp2yw
@Ash-qp2yw 2 года назад
First! Have you ever explained the raise(SystemExit) part of your name==main statement?
@Bryft
@Bryft 2 года назад
check episode 331 ;]
@anthonywritescode
@anthonywritescode 2 года назад
here's the link for that! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ZbeSPc5wL0g.html
Далее
Иран и Израиль. Вот и всё
19:43
Просмотров 1,2 млн
🎸РОК-СТРИМ без ФАНЕРЫ🤘
3:12:10
Просмотров 1,4 млн
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
What does "if __name__ == '__main__' " do in Python?
14:03
What is Python's Main Function Useful For?
8:08
Просмотров 75 тыс.
what is umask? (intermediate) anthony explains #346
7:25
If __name__ == '__main__' for Python Beginners
9:29
Просмотров 18 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 392 тыс.
Nokia 3310 top
0:20
Просмотров 4,1 млн