diff --git a/README.md b/README.md index 1ebd2ac..58ea684 100644 --- a/README.md +++ b/README.md @@ -639,21 +639,17 @@ Bytes ----- **Bytes objects are immutable sequences of single bytes.** -#### Str: +### Encode ```python = b'' - = .decode('utf-8') -``` - -#### Int: -```python = .to_bytes(, byteorder='big|small', signed=False) - = int.from_bytes(, byteorder='big|small', signed=False) + = bytes.fromhex() ``` -#### Hex: +### Decode ```python - = bytes.fromhex() + = .decode('utf-8') + = int.from_bytes(, byteorder='big|small', signed=False) = .hex() ```