Learn Python Easy Way
Wednesday, August 12, 2015
if __name__ == "__main__" : Usage
http://stackoverflow.com/questions/419163/what-does-if-name-main-do
__name__ == "__main__" is set when the module runs directly and is set to module name when an imported module is running at the time of call.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment