In the following code, raw
and want
are both 1, but they are different in computers. I want to convert raw
to want
. I have a lot of such strs, how can I convert them in python?
raw = '1'
want = '1'
print(ord(raw)) # 65297
print(ord(want)) # 49