|
|
@ -1307,7 +1307,7 @@ value = args.<name> |
|
|
|
<li><strong>Use <code class="python hljs"><span class="hljs-string">'type=FileType(<mode>)'</span></code> for files.</strong></li> |
|
|
|
</ul> |
|
|
|
<h2 id="open"><a href="#open" name="open">#</a>Open</h2> |
|
|
|
<p><strong>Opens a file and returns a corresponding file object.</strong></p> |
|
|
|
<p><strong>Opens a file and returns a corresponding file object or raises 'FileNotFoundError'.</strong></p> |
|
|
|
<pre><code class="python language-python hljs"><file> = open(<span class="hljs-string">'<path>'</span>, mode=<span class="hljs-string">'r'</span>, encoding=<span class="hljs-keyword">None</span>, newline=<span class="hljs-keyword">None</span>) |
|
|
|
</code></pre> |
|
|
|
<ul> |
|
|
|