Skip to content

Commit 3aa852f

Browse files
committed
Struct
1 parent a4b9e18 commit 3aa852f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,13 @@ Struct
875875
### Example
876876
```python
877877
>>> from struct import pack, unpack, calcsize
878+
878879
>>> pack('hhl', 1, 2, 3)
879880
b'\x00\x01\x00\x02\x00\x00\x00\x03'
881+
880882
>>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03')
881883
(1, 2, 3)
884+
882885
>>> calcsize('hhl')
883886
8
884887
```

0 commit comments

Comments
 (0)