You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1473,7 +1473,7 @@
1473
1473
<int> = <pipe>.close() <spanclass="hljs-comment"># Returns None if last command exited with returncode 0.</span>
1474
1474
</code></pre></div>
1475
1475
1476
-
<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>)
1476
+
<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>
1600
-
<conn>.execute(<spanclass="hljs-string">'<query>'</span>, <dict/namedtuple>) <spanclass="hljs-comment"># Replaces every :<key> with value.</span>
1600
+
<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>
1669
-
<tuple> = unpack(<spanclass="hljs-string">'<format>'</span>, <bytes>) <spanclass="hljs-comment"># Use iter_unpack() to get iterator of tuples.</span>
1668
+
<bytes> = pack(<spanclass="hljs-string">'<format>'</span>, <el_1> [, ...]) <spanclass="hljs-comment"># Packs numbers according to format string.</span>
1669
+
<tuple> = unpack(<spanclass="hljs-string">'<format>'</span>, <bytes>) <spanclass="hljs-comment"># Use iter_unpack() to get iterator of tuples.</span>
0 commit comments