高洛峰2017-04-18 09:42:20
xhh is used to represent hexadecimal
data='x1b'+47*'0' represents 48 bytes of data, the first byte is 0x1b, and the next 47 bytes are 0x00
The direct printing result is: 'x1bx00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00 x00x00x00x00x00x00x00x00x00x00x00'
is parsed into 12 ints in network byte order, and t is a tuple of 12 int elements