【原创】Python 获取IP地理位置
·
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import re
u = urllib2.urlopen('http://zhangzhipeng2023.cn/ip.txt')
r = u.readlines()
result = 'result_ip_address'
with file(result,'w')as f:
for i in r:
更多推荐



所有评论(0)