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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Shallow 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)Write your own timer decorators and context managers, time.perf_counter, timeit.Timer and caveatsBeginner Python Tutorial Series (5 min bitesized): Specific Extraction, Fun With PathsPython 3 Exception Handling: An in-depth look at this fundamental topic (1/2)Async Python Tutorial: Starting to Build an Asynchronous RESTful interfaceA challenge for intermediate-level Python learners (and a bit of channel news)Definitive Guide to Python Classes and OOP in Python: Introduction and ObjectsProfiling Python: An introduction to understanding the resource footprint of your codePython Bytecode: An Introductory TutorialA Beginner's Introduction to Python's Lexical ScopingHow 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)Async Python Tutorial: Web Scraping Synchronously versus Asynchronously (10x faster)9 ESSENTIAL Python 3 recipes to know Inside-outIntermediate Flask Tutorial: Implementing JSON Web Tokens (JWT)Python Lambda Expressions Tutorial: what, how, when and whyPython's Dynamic Typing Illustrated in 4 minutes: essential knowledge for writing bug-free codeA short introduction to Hash Functions, Hash Tables and Bloom FiltersRemote Procedural Call via XML-RPC in 5 minutesitertools in Python 3: A brief guide to giving your iteration maximum leverage