Browse Source

Arguments

pull/45/head
Jure Šorn 5 years ago
parent
commit
913817d20d
2 changed files with 6 additions and 6 deletions
  1. 6
      README.md
  2. 6
      index.html

6
README.md

@ -556,9 +556,9 @@ Arguments
### Inside Function Definition ### Inside Function Definition
```python ```python
def f(<nondefault_args>): ... # def f(x, y)
def f(<default_args>): ... # def f(x=0, y=0)
def f(<nondefault_args>, <default_args>): ... # def f(x, y=0)
def f(<nondefault_args>): # def f(x, y):
def f(<default_args>): # def f(x=0, y=0):
def f(<nondefault_args>, <default_args>): # def f(x, y=0):
``` ```

6
index.html

@ -588,9 +588,9 @@ shuffle(&lt;list&gt;)
&lt;function&gt;(&lt;positional_args&gt;, &lt;keyword_args&gt;) <span class="hljs-comment"># f(0, y=0)</span> &lt;function&gt;(&lt;positional_args&gt;, &lt;keyword_args&gt;) <span class="hljs-comment"># f(0, y=0)</span>
</code></pre> </code></pre>
<h3 id="insidefunctiondefinition">Inside Function Definition</h3> <h3 id="insidefunctiondefinition">Inside Function Definition</h3>
<pre><code class="python language-python hljs"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;nondefault_args&gt;)</span>:</span> ... <span class="hljs-comment"># def f(x, y)</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;default_args&gt;)</span>:</span> ... <span class="hljs-comment"># def f(x=0, y=0)</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;nondefault_args&gt;, &lt;default_args&gt;)</span>:</span> ... <span class="hljs-comment"># def f(x, y=0)</span>
<pre><code class="python language-python hljs"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;nondefault_args&gt;)</span>:</span> <span class="hljs-comment"># def f(x, y):</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;default_args&gt;)</span>:</span> <span class="hljs-comment"># def f(x=0, y=0):</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(&lt;nondefault_args&gt;, &lt;default_args&gt;)</span>:</span> <span class="hljs-comment"># def f(x, y=0):</span>
</code></pre> </code></pre>
<h2 id="splatoperator"><a href="#splatoperator" name="splatoperator">#</a>Splat Operator</h2> <h2 id="splatoperator"><a href="#splatoperator" name="splatoperator">#</a>Splat Operator</h2>
<h3 id="insidefunctioncall-1">Inside Function Call</h3> <h3 id="insidefunctioncall-1">Inside Function Call</h3>

Loading…
Cancel
Save