import structbuffer = bytearray(8)buffer[0]=1buffer[1]=1struct.pack_into('>ih', buffer, 2, 100, 200)# to convert the array to strprint(bytes(buffer))
No comments:
Post a Comment