[Tutor] str format conversion help
eMyListsDDg
emylistsddg at gmail.com
Fri Jul 16 02:03:38 CEST 2010
yep, i noticed. ;^)
no prob, through your help, it is working the way i needed.
thanks
>> print "[%s]" % ('-'.join([hex(v) for v in theValue]) )
> Oops, that leaves 0x at the front of each byte.
> You could strip that off with
> print "[%s]" % ('-'.join([hex(v)[2:] for v in theValue]) )
> Sorry,
> Alan G.
--
Best regards,
eMyListsDDg mailto:eMyListsDDg at gmail.com
More information about the Tutor
mailing list