Difference between revisions of "If name == " main ":"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
  if __name__ == "__main__":
 
  if __name__ == "__main__":
 
   main()
 
   main()
 +
 +
 +
if __name__ == "__main__":
 +
  yourfunction()
  
 
== Related terms ==
 
== Related terms ==
Line 15: Line 19:
  
 
== See also ==
 
== See also ==
 +
* {{import}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Pyhon]]
 
[[Category:Pyhon]]

Latest revision as of 09:49, 27 March 2024

Advertising: