Paul Sokolovsky | e9db840 | 2014-04-10 03:45:38 +0300 | [diff] [blame] | 1 | import struct |
2 | print(struct.calcsize("<bI")) | ||||
3 | print(struct.unpack("<bI", b"\x80\0\0\x01\0")) | ||||
Paul Sokolovsky | 6582d64 | 2014-04-10 22:19:32 +0300 | [diff] [blame^] | 4 | print(struct.calcsize(">bI")) |
5 | print(struct.unpack(">bI", b"\x80\0\0\x01\0")) |