Difference between revisions of "If name == " main ":"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
* [[Module]] | * [[Module]] | ||
* <code>[[def]]</code> | * <code>[[def]]</code> | ||
− | * [[ | + | * [[Python double under (dunder) methods]] |
== See also == | == See also == |
Revision as of 20:37, 28 March 2022
https://stackoverflow.com/questions/419163/what-does-if-name-main-do
if __name__ == "__main__":
if __name__ == "__main__": main()
Related terms
See also
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: