# *-* coding:utf-8 *-* import binascii data = [1441465642, 251096121, -870437532, -944322827, 647240698, 638382323, 282381039, -966334428, -58112612, 605226810] result = [] # 转十六进制 def to_16(data): for i in range(len(data)): result.append(hex(data[i] & (2**32-1))[:-1]) return result # 转数字为ASCII码 a = [1635017059, 1953724780, 1868915551] str = '' for i in a: b = hex(i)[2:] c = binascii.a2b_hex(b) str += c print str