I get the following:
_format_ = "7c7sc" print struct.unpack(self._format_, data)
gives
('\x7f', 'E', 'L', 'F', '\x01', '\x01', '\x01', '\x00\x00\x00\x00\x00\x00\x00', '\x00')
I want to take '\x01' and get 1 from it, i.e. convert to `` int. Any ideas? Thanks
python
steprobe
source share