int to byte 변환
·
언어/Python
Version: Python3 int 값을 byte 값으로 변환a = 65byte_a = bytes([a])print(byte_a)RESULT ---------------------b'A' int 리스트를 byte 리스트로 변환abc = [65,66,67]byte_abc = bytes(abc)print(byte_abc)RESULT ---------------------b'ABC'