内置函数

 

i=oct(10)
print(i)
i=int(0x15)
print(i)
ii=int(0b110101010101)
print(ii)

 

i = int("0xe",base=16)

 

print(i)/14

发表回复