int ⇒ bytes num = 255 num.to_bytes(2, 'big') # 2バイト、ビッグ ... なメソッドのようです(python3ならintとbytesの変換が楽勝になる - BlankTar)。
確定! 回上一頁