fork(1) download
  1. import struct
  2.  
  3. pi = 0x3141
  4.  
  5. msb, lsb = struct.unpack('>HB', pi)
  6. print(msb)
  7. print(lsb)
  8.  
  9.  
Runtime error #stdin #stdout #stderr 0.04s 9316KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
TypeError: a bytes-like object is required, not 'int'