diff --git a/README.md b/README.md index 024e2b6..d196ef6 100644 --- a/README.md +++ b/README.md @@ -868,15 +868,15 @@ Struct ------ **This module performs conversions between Python values and C struct represented as Python Bytes object.** ```python - = struct.pack('', [, , ...]) - = struct.unpack('', ) +from struct import pack, unpack, calcsize ``` -### Example ```python ->>> from struct import pack, unpack, calcsize + = pack('', [, , ...]) + = unpack('', ) ``` +### Example ```python >>> pack('hhl', 1, 2, 3) b'\x00\x01\x00\x02\x00\x00\x00\x03'