struct.pack用于将Python的值根据格式符,转换为字节数组。
参考: https://blog.csdn.net/funnyPython/article/details/78722239 https://docs.python.org/3/library/struct.html#module-struct