int를 byte로 변환하는 방법 크게 두 가지가 방법이 있습니다. 첫 번째는 to_bytes() 함수를 이용하는 방법입니다. 사용 방법은 다음과 같습니다. print('to_bytes()') print((258).to_bytes(2, byteorder="little")) print((258).to_bytes(2, byteorder="big")) print((258).to_bytes(4, byteorder="little", signed=True)) #print((-258).to_bytes(4, byteorder="little", signed=False)) #OverflowError: can't convert negative int to unsigned print((-258000).to_bytes(4, b..