bytes.fromhex()
bytes.fromhex()
while True:
byte=bf.read(1)
if not byte:
break
byte,=struct.unpack("B",byte)
if byte==0:
break
data.append("%02x" % byte)
temp=" ".join(data)
bdata=bytes.fromhex(temp)
buff=bdata.decode("utf-8")声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
