mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
parent
57d198ec83
commit
294398c102
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ This is where using the ``if __name__ == '__main__'`` code block comes in
|
|||
handy. Code within this block won't run unless the module is executed in the
|
||||
top-level environment.
|
||||
|
||||
Putting as few statements as possible in the block below ``if __name___ ==
|
||||
Putting as few statements as possible in the block below ``if __name__ ==
|
||||
'__main__'`` can improve code clarity and correctness. Most often, a function
|
||||
named ``main`` encapsulates the program's primary behavior::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue