Posted By

ishikawa on 05/15/08


Tagged

python String


Versions (?)

iterates over the bytes of string


 / Published in: Python
 

  1. import array
  2. for byte in array.array('B', "ABCDEFG"):
  3. print byte # prints 65, 66, 67, 68, ... and so on.

Report this snippet  

You need to login to post a comment.