|
|
@ -1681,7 +1681,7 @@ db = connector.connect(host=<str>, user=<str>, password=<str>, |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
<div><h2 id="struct"><a href="#struct" name="struct">#</a>Struct</h2><ul> |
|
|
|
<li><strong>Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.</strong></li> |
|
|
|
<li><strong>Module that performs conversions between a sequence of numbers and a bytes object.</strong></li> |
|
|
|
<li><strong>Machine’s native type sizes and byte order are used by default.</strong></li> |
|
|
|
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> struct <span class="hljs-keyword">import</span> pack, unpack, iter_unpack |
|
|
|
<bytes> = pack(<span class="hljs-string">'<format>'</span>, <num_1> [, <num_2>, ...]) |
|
|
|