Try this: hex_str = "0xAD4" hex_int = int(hex_str, 16) new_int = hex_int + 0x200 print hex(new_int). If you don't like the 0x in the ...
確定! 回上一頁