摘要:
参考地址:http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/how-to-convert-ip-addresses-between-bigi程序代码:import sysdef ipToBigint(ipaddr): ipStrs = ipaddr.split(".") return str(int(ipStrs[3]) + int(ipStrs[2])*256 + int(ipStrs[1])*256*256 + int(ipStrs[0])*256*256*256) def bigintToIp(int 阅读全文
posted @ 2012-09-03 15:08 moose 阅读(747) 评论(0) 推荐(0) 编辑