@ -1648,6 +1648,7 @@ CompletedProcess(args=[<span class="hljs-string">'bc'</span>, <span class="hljs-
< 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 bytes object.< / strong > < / li >
< li > < strong > System’s type sizes, byte order, and alignment rules are used by default.< / strong > < / li >
< li > < strong > The only exception being types float and double, that always take up 4 and 8 bytes.< / 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
< bytes> = pack(< span class = "hljs-string" > '< format> '< / span > , < el_1> [, ...]) < span class = "hljs-comment" > # Packages arguments into bytes object.< / span >
< tuple> = unpack(< span class = "hljs-string" > '< format> '< / span > , < bytes> ) < span class = "hljs-comment" > # Use iter_unpack() for iterator of tuples.< / span >