How would you convert a string to ASCII values?
For example, \"hi\" would return 104105.
I can individually do ord(\'h\') and ord(\'i\'), but it\'s going to
you can actually do it with numpy:
import numpy as np a = np.fromstring('hi', dtype=np.uint8) print(a)