strings problem

Jimmy verma jim_938 at hotmail.com
Mon Jul 7 04:23:15 EDT 2003


...

print t

The output is

Token: 50
Token: 800
\275\371\264

Instead of this i want the output should be in no's like this:
bdF9B4


print repr(t)

'\xbd\xf9\xb4'

print ''.join(['%02X' % ord(c) for c in t])

BDF9B4




yeah that solved the problem. Can you please tell me sthing more regarding 
what you have suggested here:

print ' ' .join([' 02X' % ord(c) for c in t])

Thanks again.

regards,

_________________________________________________________________
Dress up your desktop! Get the best wallpapers. 
http://server1.msn.co.in/msnchannels/Entertainment/wallpaperhome.asp Just 
click here!






More information about the Python-list mailing list