📜  打印将十六进制转换为字符串 ascii - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.486000             🧑  作者: Mango

代码示例1
hex_string = "0x616263"[2:]
#Slice string to remove leading `0x`

ascii_string = hex_string.decode("hex")
#Convert to ASCII representation

print(ascii_string)

# abc