fork download
  1.  
  2.  
  3. print(b'11:10:00\x00ng '.decode("utf8"))
  4. print(b'+\r\x00\x00'.decode("utf8"))
  5.  
  6. import struct
  7.  
  8. fmt = "bb5s" #2 bytes and a string of length 5
  9. print(struct.unpack(fmt,b"\x00\x12\x33\x43\x55\x77\x65"))
Success #stdin #stdout 0.01s 9992KB
stdin
Standard input is empty
stdout
11:10:00ng 
+

(0, 18, b'3CUwe')