У нас вы можете посмотреть бесплатно You should put this in all your Python scripts | if __name__ == '__main__': ... или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Python's favorite unexplained incantation! Do you know def main if _name_ == '__main__'? In this video I explain why your Python scripts should use this idiom. It's not strictly necessary, but you will be a better Python coder if you follow established conventions that improve the readability of your code. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosS... StackOverflow on the topic: https://stackoverflow.com/questions/4... Python docs: https://docs.python.org/3/reference/t... SUPPORT ME ⭐ --------------------------------------------------- Patreon: / mcoding Paypal: https://www.paypal.com/donate/?hosted... Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, John M, Laura M, Pieter G, Vahnekie, Sigmanificient BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: / discord Github: https://github.com/mCodingLLC/ Reddit: / mcoding Facebook: / james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:58 Dunder name 1:47 Why if name main 3:36 Why def main 4:59 Pickle example 5:42 Multiprocessing example 6:42 Main function entry point 7:07 Outro