mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
generate in-page TOCs on demand
This commit is contained in:
+1
-15
@@ -14,21 +14,7 @@ body{counter-reset:h1 3}
|
||||
<p><span>❝</span> I’m telling you this ’cause you’re one of my friends.<br>
|
||||
My alphabet starts where your alphabet ends! <span>❞</span><br>— <cite>Dr. Seuss, On Beyond Zebra!</cite>
|
||||
</blockquote>
|
||||
<ol>
|
||||
<li><a href=#divingin>Diving in</a>
|
||||
<li><a href=#one-ring-to-rule-them-all>Unicode</a>
|
||||
<ol>
|
||||
<li>How strings are stored in memory
|
||||
<li>Converting between different character encodings
|
||||
<li><a href=#py-encoding>Specifying character encoding in <code>.py</code> files</a>
|
||||
</ol>
|
||||
<li>Strings in Python 3
|
||||
<li>Common string operations
|
||||
<li>Formatting strings
|
||||
<li><a href=#string-module>The <code>string</code> module</a>
|
||||
<li><a href=#byte-arrays>Strings vs. bytes</a>
|
||||
<li><a href=#furtherreading>Further reading</a>
|
||||
</ol>
|
||||
<p id=toc>
|
||||
<h2 id=divingin>Diving in</h2>
|
||||
<p class=f>Chinese has thousands of characters. The <a href="http://en.wikipedia.org/wiki/Rotokas_alphabet">Rotokas alphabet</a> of <a href="http://en.wikipedia.org/wiki/Bougainville_Province">Bougainville</a> is the smallest alphabet in the world, with just 12 letters. English has 26, plus a handful of punctuation marks. Python 3 can handle all of these languages, and more.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user