diff --git a/README.md b/README.md index 1fd66aa..6017ed2 100644 --- a/README.md +++ b/README.md @@ -875,13 +875,19 @@ Struct ### Example ```python >>> from struct import pack, unpack, calcsize +``` +```python >>> pack('hhl', 1, 2, 3) b'\x00\x01\x00\x02\x00\x00\x00\x03' +``` +```python >>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) +``` +```python >>> calcsize('hhl') 8 ```