In Python, in addition to Integer, the other binary can only be represented by a string.
In [1]: Ord ('A')#the character = = ASCII code, Return the integer ordinal of a one-character string.OUT[1]: 65In [2]: Chr (65)#ASCII Code = = character, Return A string of one character with ordinal i; 0 <= i <.OUT[2]:'A'In [3]: Bin (99)#decimal = binary, Return the binary representation of an integer or Long integer.OUT[3]:'0b1100011'In [4]: Int ('0b1100011', 2)#Binary = decimal, int (' 1100011 ', 2)OUT[4]: 99In [5]: Oct (99)#decimal = octal, Return the octal representation of an integer or Long integer.OUT[5]:'0143'In [6]: Int ('0143', 8)#octal = DecimalOUT[6]: 99In [7]: Hex (99)#decimal = 16 binary, Return the hexadecimal representation of an integer or Long integer.OUT[7]:'0x63'In [8]: Int ('0x63', 16)#hexadecimal = decimalOUT[8]: 99
[Python] in-process conversion