a = 0b010
b = 0o010
c = 0x010
print(type(a),a)
print(type(b),b)
print(type(c),c)
#-------------
print(0b010&0b111)
print(0b001|0b010)
print(0b010^0b100)
print(~0b001) #原码->补码->求原码(原码的值+符号位即为最后的真值)
#--------------
print(bin(0x10))
print(hex(0b10))
print(oct(0b10))
print(int(0x10))