如何在Python中将十六进制字符串转换为int?
我可以把它作为" 0xffff"或只是" ffff".
0xffff
ffff
python string hex
hex ×1
python ×1
string ×1