Re: how to convert ‘\xf0' to 0xf0 ?

petercable at gmail.com petercable at gmail.com
Fri Dec 12 05:43:42 CET 2008


On Dec 12, 4:48 am, chengang.beij... at gmail.com wrote:
> int('\xf0',16) doesn't work, any way to do that?

hex(ord('\xf0'))

HTH,

Pete



More information about the Python-list mailing list