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

petercable at gmail.com petercable at gmail.com
Thu Dec 11 23:43:42 EST 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