diff --git a/README.md b/README.md index 7863cf3..1ebd2ac 100644 --- a/README.md +++ b/README.md @@ -637,20 +637,27 @@ raise IOError("input/output error") Bytes ----- -**Bytes objects are immutable sequences of single bytes:** +**Bytes objects are immutable sequences of single bytes.** + +#### Str: ```python -# str = b'' = .decode('utf-8') +``` -# int +#### Int: +```python = .to_bytes(, byteorder='big|small', signed=False) = int.from_bytes(, byteorder='big|small', signed=False) +``` -# hex +#### Hex: +```python = bytes.fromhex() = .hex() +``` +```python = b''.join() ```