python获取本机真实IP
#coding: utf-8import re, urllib2
m = re.search("td>(\d+\.\d+\.\d+\.\d+)</td", urllib2.urlopen("http://whois.).read())
if m:
print m.group(1)
原理简单,就不累赘了呵呵。
2009-07-16 10:00
2009-07-17 08:04
2009-11-07 14:45