Python 파이썬 16진수에서 10진수, 2진수를 10진수로, 8진수를 10진수로

2020. 4. 10. 11:21Python/소스코드

728x90
반응형

 

print("16진수를 10진수로")
print("int('0xea',16) --> ",int('0xea',16))

print("2진수를 10진수로")
print("int('1111',2) --> ",int('1111',2))

print("8진수를 10진수로")
print("int('0o22',8) --> ",int('0o22',8))



 

728x90
반응형