|
|
@ -398,9 +398,9 @@ to_exclusive = <range>.stop |
|
|
|
<pre><code class="text language-text">+------------------+------------+------------+------------+ |
|
|
|
| | Sequence | Collection | Iterable | |
|
|
|
+------------------+------------+------------+------------+ |
|
|
|
| list, range, str | Yes | Yes | Yes | |
|
|
|
| dict, set | | Yes | Yes | |
|
|
|
| iter | | | Yes | |
|
|
|
| list, range, str | yes | yes | yes | |
|
|
|
| dict, set | | yes | yes | |
|
|
|
| iter | | | yes | |
|
|
|
+------------------+------------+------------+------------+ |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> numbers <span class="hljs-keyword">import</span> Integral, Rational, Real, Complex, Number |
|
|
|