Hex strings generally have a 0x prefix. If you have this prefix and a valid string, you can use int(string, 0) to get the integer.
確定! 回上一頁