Browse Source

Main

pull/36/head
Jure Šorn 5 years ago
parent
commit
9ff804d469
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -21,7 +21,7 @@ Contents
Main
----
```python
if __name__ == '__main__': # Runs main() if file was not imported.
if __name__ == '__main__': # Runs main() if file wasn't imported.
main()
```

2
index.html

@ -215,7 +215,7 @@ pre.prettyprint {
}
</code></pre>
<h2 id="main"><a href="#main" name="main">#</a>Main</h2>
<pre><code class="python language-python hljs"><span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">'__main__'</span>: <span class="hljs-comment"># Runs main() if file was not imported.</span>
<pre><code class="python language-python hljs"><span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">'__main__'</span>: <span class="hljs-comment"># Runs main() if file wasn't imported.</span>
main()
</code></pre>
<h2 id="list"><a href="#list" name="list">#</a>List</h2>

Loading…
Cancel
Save