初始16进制字符串放在一个列表中
a = [u'0779213524240e4e', u'2a2e9c1c25d34f4f']
for dhash in a:
print(dhash)
int_10 = int(str(dhash), 16)
print(int_10)
int_16 = hex(int_10)
print(int_16)
int_16_string = str(int_16)
print(int_16_string)
int_16_to_10 = int(int_16_string, 16)
print(int_16_to_10)
print "-"*35
结果
0779213524240e4e
538498142570810958
0x779213524240e4e
0x779213524240e4e
538498142570810958
-----------------------------------
2a2e9c1c25d34f4f
3039538443229286223
0x2a2e9c1c25d34f4f
0x2a2e9c1c25d34f4f
3039538443229286223
-----------------------------------