@ -54,7 +54,7 @@
< body >
< header >
< aside > January 27 , 2023< / aside >
< aside > January 28 , 2023< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / header >
@ -1648,9 +1648,8 @@ 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 >
< bytes> = pack(< span class = "hljs-string" > '< format> '< / span > , < el_1> [, ...]) < span class = "hljs-comment" > # Packages arguments or raises struct.error .< / span >
< tuple> = unpack(< span class = "hljs-string" > '< format> '< / span > , < bytes> ) < span class = "hljs-comment" > # Use iter_unpack() for iterator of tuples.< / span >
< / code > < / pre > < / div >
@ -2924,7 +2923,7 @@ $ pyinstaller script.py --add-data '<path>:.' <span class="hljs-comment">
< footer >
< aside > January 27 , 2023< / aside >
< aside > January 28 , 2023< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / footer >