[2016-01-17][python][查询外网IP]
[2016-01-17][python][查询外网IP]
1 2 3 4 5 6 7 8 9 10 | from urllib import requestdef GetIP():#直接打开http://ip.dnsexit.com/index.php进行IP查询 data = f.read(); return data[2:-1]IP = GetIP();print(IP); |
|
浙公网安备 33010602011771号