@ -1473,7 +1473,7 @@ shutil.rmtree(<path>) <span class="hljs-comment"># Deletes t
<int> = <pipe>.close() <spanclass="hljs-comment"># Returns None if last command exited with returncode 0.</span>
</code></pre></div>
<div><h4id="sends11tothebasiccalculatorandcapturesitsoutput">Sends '1 + 1' to the basic calculator and captures its output:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>></span>subprocess.run(<spanclass="hljs-string">'bc'</span>, input=<spanclass="hljs-string">'1 + 1\n'</span>, capture_output=<spanclass="hljs-keyword">True</span>, text=<spanclass="hljs-keyword">True</span>)
<div><h4id="sends11tothebasiccalculatorandcapturesitsoutput">Sends "1 + 1" to the basic calculator and captures its output:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>></span>subprocess.run(<spanclass="hljs-string">'bc'</span>, input=<spanclass="hljs-string">'1 + 1\n'</span>, capture_output=<spanclass="hljs-keyword">True</span>, text=<spanclass="hljs-keyword">True</span>)
<div><h3id="placeholders">Placeholders</h3><pre><codeclass="python language-python hljs"><conn>.execute(<spanclass="hljs-string">'<query>'</span>, <list/tuple>) <spanclass="hljs-comment"># Replaces every question mark with an item.</span>
<conn>.execute(<spanclass="hljs-string">'<query>'</span>, <dict/namedtuple>) <spanclass="hljs-comment"># Replaces every :<key> with value.</span>
<conn>.execute(<spanclass="hljs-string">'<query>'</span>, <dict/namedtuple>) <spanclass="hljs-comment"># Replaces every :<key> with a value.</span>
<bytes> = pack(<spanclass="hljs-string">'<format>'</span>, <num_1> [, ...]) <spanclass="hljs-comment"># Packs numbers according to format string.</span>
<tuple> = unpack(<spanclass="hljs-string">'<format>'</span>, <bytes>) <spanclass="hljs-comment"># Use iter_unpack() to get iterator of tuples.</span>
<bytes> = pack(<spanclass="hljs-string">'<format>'</span>, <el_1> [, ...]) <spanclass="hljs-comment"># Packs numbers according to format string.</span>
<tuple> = unpack(<spanclass="hljs-string">'<format>'</span>, <bytes>) <spanclass="hljs-comment"># Use iter_unpack() to get iterator of tuples.</span>