파이썬에서 진수 다루기

PythonPython
Python
에서 2진수, 8진수, 16진수 다루기
 
# print("Hello, world!") str = "한빛맹학교" utf8 = list(str) print(utf8) print(len(utf8)) for ch in str: print(hex(ord(ch))) # 0b10010010, bin(195) 이런 것들 다 된다.