hex int and string

jessica cindyqjm at gmail.com
Fri Nov 27 22:43:26 EST 2009


On 11月27日, 下午4时54分, luca72 <lucabe... at libero.it> wrote:
> hello i have a problem
>
> i have this
>
> str = 'D3'
> and i need to trasform in 0xd3 type int and not type string how i can
> do this?
> if i do
> hex(int(str,16) ) i obtain a string and this is not what i need.
>
> thanks Luca

http://www.mbthome.net/ mbt shoes



More information about the Python-list mailing list