Skip to content

Commit 02526e9

Browse files
committed
CSV
1 parent 44a265e commit 02526e9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1652,12 +1652,12 @@ CSV
16521652
---
16531653
```python
16541654
import csv
1655-
<reader> = csv.reader(<file>, dialect='excel', delimiter=',', ...)
1655+
<reader> = csv.reader(<file>, dialect='excel', delimiter=',')
16561656
<list> = next(<reader>) # Returns a row as list of strings.
16571657
```
16581658

16591659
```python
1660-
<writer> = csv.writer(<file>, dialect='excel', delimiter=',', ...)
1660+
<writer> = csv.writer(<file>, dialect='excel', delimiter=',')
16611661
<writer>.writerow(<collection>)
16621662
<writer>.writerows(<coll_of_coll>)
16631663
```

Diff for: index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1474,10 +1474,10 @@ <h4 id="usingsubprocess">Using subprocess:</h4>
14741474
</code></pre>
14751475
<h2 id="csv"><a href="#csv" name="csv">#</a>CSV</h2>
14761476
<pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> csv
1477-
&lt;reader&gt; = csv.reader(&lt;file&gt;, dialect=<span class="hljs-string">'excel'</span>, delimiter=<span class="hljs-string">','</span>, ...)
1477+
&lt;reader&gt; = csv.reader(&lt;file&gt;, dialect=<span class="hljs-string">'excel'</span>, delimiter=<span class="hljs-string">','</span>)
14781478
&lt;list&gt; = next(&lt;reader&gt;) <span class="hljs-comment"># Returns a row as list of strings.</span>
14791479
</code></pre>
1480-
<pre><code class="python language-python hljs">&lt;writer&gt; = csv.writer(&lt;file&gt;, dialect=<span class="hljs-string">'excel'</span>, delimiter=<span class="hljs-string">','</span>, ...)
1480+
<pre><code class="python language-python hljs">&lt;writer&gt; = csv.writer(&lt;file&gt;, dialect=<span class="hljs-string">'excel'</span>, delimiter=<span class="hljs-string">','</span>)
14811481
&lt;writer&gt;.writerow(&lt;collection&gt;)
14821482
&lt;writer&gt;.writerows(&lt;coll_of_coll&gt;)
14831483
</code></pre>

Diff for: web/script_2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const DIAGRAM_9_B =
152152
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" +
153153
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" +
154154
"┠──────────────────┼───────────┼───────────┼──────────────┨\n" +
155-
"┃ delimiter │ ',' │ '\t' │ ',' ┃\n" +
155+
"┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" +
156156
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" +
157157
"┃ doublequote │ True │ True │ True ┃\n" +
158158
"┃ skipinitialspace │ False │ False │ False ┃\n" +

0 commit comments

Comments
 (0)