最好用 int unsigned 来存储IP: ip 转换成数字 inet_aton(‘209.207.224.40’) 结果就是下面的那串数字。 数字转换成ip inet_ntoa(3520061480)结果就是上面的那个ip