Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 530 Bytes

File metadata and controls

34 lines (19 loc) · 530 Bytes

Struct Example

Question

Using the structure module in python for serialization and deserialization.

Solution

.. literalinclude:: ../../languages/python/design_struct_example.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/design_struct_example.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`design_struct_example.py`
   * :python-better-explain:`design_struct_example.rst`