xkenneth a écrit :
> I want to be able to cycle through an array and print something in
> hexadecimal. Such as this
> thisArray = ["AF","0F","5F"]
> for x in range(len(thisArray)):
>            print "\x" + thisArray[x]
> 
> However python chokes on the escaped identifier, how can I get around
> this?

Either by escaping the backslash:
   print "\\x"
or by using a raw string:
   print r"\x"
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to