iterates over the bytes of string


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.