mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typo
This commit is contained in:
+1
-1
@@ -171,7 +171,7 @@ body{counter-reset:h1 3}
|
||||
<a><samp class=p>>>> </samp><kbd class=pp>metadata.st_size</kbd> <span class=u>①</span></a>
|
||||
<samp class=pp>3070</samp>
|
||||
<samp class=p>>>> </samp><kbd class=pp>import humansize</kbd>
|
||||
<a.<samp class=p>>>> </samp><kbd class=pp>humansize.approximate_size(metadata.st_size)</kbd> <span class=u>②</span></a>
|
||||
<a><samp class=p>>>> </samp><kbd class=pp>humansize.approximate_size(metadata.st_size)</kbd> <span class=u>②</span></a>
|
||||
<samp class=pp>'3.0 KiB'</samp></pre>
|
||||
<ol>
|
||||
<li>The <code>os.stat()</code> function also returns the size of a file, in the <code>st_size</code> property. The file <code>feed.xml</code> is <code>3070</code> bytes.
|
||||
|
||||
Reference in New Issue
Block a user