C
chengang.beijing
int('\xf0',16) doesn't work, any way to do that?
Should be int('10',16)int('\xf0',16) doesn't work, any way to do that?
'\xf0' is the value read from a binary file, I need to change this
kinds strings to int for further processing...
if it is in C, then '\xf0' is an integer and it can be handled
directly, but in python, it is a string.
and both int('10',16) and int('0x10',16) returns 16.
Br, Chen Gang
Hi,
ord('\xf0') works and it only works for char. Do you know any way to
convet
'\xf0\xf0' and '\xf0\xf0\xff\xfe' to integer?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.