Загрузка страницы

Python Tutorial: if __name__ == '__main__'

#python
In this tutorial, we'll look at a common conditional statement in Python:

if __name__ == '__main__':

This allows python to distinguish between a Python module being run directly and being imported from another module.

Видео Python Tutorial: if __name__ == '__main__' канала Live Python
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 сентября 2019 г. 23:10:09
00:05:15
Другие видео канала
Shallow Copies versus Deep Copies: What you need to know to work with lists effectively and bug-freeShallow Copies versus Deep Copies: What you need to know to work with lists effectively and bug-freePython Project Mindset in 3 minutes: What to choose? How to go about it? (2019)Python Project Mindset in 3 minutes: What to choose? How to go about it? (2019)Write your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveatsWrite your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveatsBeginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With PathsBeginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With PathsPython 3 Exception Handling: An in-depth look at this fundamental topic (1/2)Python 3 Exception Handling: An in-depth look at this fundamental topic (1/2)Async Python Tutorial: Starting to Build an Asynchronous RESTful interfaceAsync Python Tutorial: Starting to Build an Asynchronous RESTful interfaceA challenge for intermediate-level Python learners (and a bit of channel news)A challenge for intermediate-level Python learners (and a bit of channel news)Definitive Guide to Python Classes and OOP in Python: Introduction and ObjectsDefinitive Guide to Python Classes and OOP in Python: Introduction and ObjectsProfiling Python: An introduction to understanding the resource footprint of your codeProfiling Python: An introduction to understanding the resource footprint of your codePython Bytecode: An Introductory TutorialPython Bytecode: An Introductory TutorialA Beginner's Introduction to Python's Lexical ScopingA Beginner's Introduction to Python's Lexical ScopingHow I became a Self-Taught Programmer achieving my dreams (Tips, advice and inspiration)How I became a Self-Taught Programmer achieving my dreams (Tips, advice and inspiration)Python Mutable Default Parameters in 5 minutes: A common misunderstanding (and memoization)Python Mutable Default Parameters in 5 minutes: A common misunderstanding (and memoization)Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)9 ESSENTIAL Python 3 recipes to know Inside-out9 ESSENTIAL Python 3 recipes to know Inside-outIntermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)Intermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)Python Lambda Expressions Tutorial: what, how, when and whyPython Lambda Expressions Tutorial: what, how, when and whyPython's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free codePython's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free codeA short introduction to Hash Functions, Hash Tables and Bloom FiltersA short introduction to Hash Functions, Hash Tables and Bloom FiltersRemote Procedural Call via XML-RPC in 5 minutesRemote Procedural Call via XML-RPC in 5 minutesitertools in Python 3: A brief guide to giving your iteration maximum leverageitertools in Python 3: A brief guide to giving your iteration maximum leverage
Яндекс.Метрика