|
|
@ -54,7 +54,7 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
<header> |
|
|
|
<aside>July 28, 2022</aside> |
|
|
|
<aside>July 29, 2022</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</header> |
|
|
|
|
|
|
@ -231,7 +231,7 @@ Point(x=<span class="hljs-number">1</span>, y=<span class="hljs-number">2</span> |
|
|
|
<iter> = chain.from_iterable(<coll>) <span class="hljs-comment"># Empties collections inside a collection in order.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><iter> = islice(<coll>, to_exclusive) <span class="hljs-comment"># Only returns first 'to_exclusive' elements.</span> |
|
|
|
<iter> = islice(<coll>, from_inclusive, …) <span class="hljs-comment"># `to_exclusive, +step_size`.</span> |
|
|
|
<iter> = islice(<coll>, from_inclusive, …) <span class="hljs-comment"># `to_exclusive, +step_size`. Indices can be None.</span> |
|
|
|
</code></pre> |
|
|
|
<div><h2 id="generator"><a href="#generator" name="generator">#</a>Generator</h2><ul> |
|
|
|
<li><strong>Any function that contains a yield statement returns a generator.</strong></li> |
|
|
@ -2905,7 +2905,7 @@ $ pyinstaller script.py --add-data '<path>:.' <span class="hljs-comment"> |
|
|
|
|
|
|
|
|
|
|
|
<footer> |
|
|
|
<aside>July 28, 2022</aside> |
|
|
|
<aside>July 29, 2022</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</footer> |
|
|
|
|
|
|
|