Browse Source

CSV

pull/42/head
Jure Šorn 5 years ago
parent
commit
5193a245d2
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1671,7 +1671,7 @@ from csv import reader, writer
### Read
```python
<reader> = reader(<file>, dialect='excel', delimiter=',')
<list> = next(<reader>) # Returns next row as list of strings.
<list> = next(<reader>) # Returns next row as a list of strings.
```
* **File must be opened with `'newline=""'` argument, or newlines embedded inside quoted fields will not be interpreted correctly!**

2
index.html

@ -1502,7 +1502,7 @@ shutil.rmtree(&lt;path&gt;) <span class="hljs-comment"># Deletes th
</code></pre></div>
<div><h3 id="read">Read</h3><pre><code class="python language-python hljs">&lt;reader&gt; = reader(&lt;file&gt;, dialect=<span class="hljs-string">'excel'</span>, delimiter=<span class="hljs-string">','</span>)
&lt;list&gt; = next(&lt;reader&gt;) <span class="hljs-comment"># Returns next row as list of strings.</span>
&lt;list&gt; = next(&lt;reader&gt;) <span class="hljs-comment"># Returns next row as a list of strings.</span>
</code></pre></div>
<ul>

Loading…
Cancel
Save