We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa852f commit cb21e6aCopy full SHA for cb21e6a
README.md
@@ -875,13 +875,19 @@ Struct
875
### Example
876
```python
877
>>> from struct import pack, unpack, calcsize
878
+```
879
880
+```python
881
>>> pack('hhl', 1, 2, 3)
882
b'\x00\x01\x00\x02\x00\x00\x00\x03'
883
884
885
886
>>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03')
887
(1, 2, 3)
888
889
890
891
>>> calcsize('hhl')
892
8
893
```
0 commit comments