encode()
Encode a string to bytes.
Usage
encode(data)See also decode() for the reverse.
Parameters
data: str-
The string to encode.
Returns
bytes-
The encoded bytes.
Encode a string to bytes.
Usage
See also decode() for the reverse.
data: strThe string to encode.
bytesThe encoded bytes.