就是像c中那样。从socket收到包,用struct unpack后,要解析自自定义的内容,用type看,解后的数据是str类型,比如data第1个字节是0xeb,我用int(data[0],16),报错:不能以基数16转换'xeb'!