String to bytes


 * string_to_bytes
 * String to byte array

Python
Python 2.x Python 3.x