📌  相关文章
📜  python 字符串转十六进制 - Python 代码示例

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

代码示例2
hex_string = "0xAA"
# "0x" also required

an_integer = int(hex_string, 16)
# an_integer is a decimal value

hex_value = hex(an_integer)
print(hex_value)