最終更新:2022-05-17 (火) 10:13:09 (681d)
Python/bytearray
mutable
https://docs.python.org/ja/3/library/stdtypes.html#bytearray
bytearray([source[, encoding[, errors]]])
メソッド
append add single item extend
メモ
- bytearray に専用のリテラル構文はないので、コンストラクタを使って作成します:
- 空のインスタンスを作る: bytearray()
bytesに変換
# bytearray -> bytes out = bytes(in)