You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+27-9Lines changed: 27 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -365,14 +365,31 @@ <h4 id="sometypesdonothavebuiltinnamessotheymustbeimported">Some types do not ha
365
365
</code></pre>
366
366
<h3id="abc">ABC</h3>
367
367
<p><strong>An abstract base class introduces virtual subclasses, that don’t inherit from it but are still recognized by isinstance() and issubclass().</strong></p>
368
-
<pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> numbers <spanclass="hljs-keyword">import</span> Integral, Rational, Real, Complex, Number
<pre><codeclass="python language-python hljs"><str> = <str>.strip() <spanclass="hljs-comment"># Strips all whitespace characters from both ends.</span>
378
395
<str> = <str>.strip(<spanclass="hljs-string">'<chars>'</span>) <spanclass="hljs-comment"># Strips all passed characters from both ends.</span>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'int(<str>)'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'float(<str>)'</span></code> raise ValueError on malformed strings.</strong></li>
0 commit comments