16进制字符串转10进制IP地址 1234ipaddhex="3340a81f"'.'.join([str(int(i,16)) for i in re.findall(r'.{2}',ipaddhex)])# '51.64.168.31'