import struct模块能拿到客户端跟服务器发送信息时的它前几个字节语法:
import struct res=struct.pack("i","") print(res) print(len(res)) obj=struct.unpack("i",res) print(obj[0])