仅列出标题 列出摘要
2014年4月12日

git clone 错误ca-certificates.crt

摘要: git clone https://github.com/baoyiluo/selfblog.gitCloning into 'selfblog'...error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/baoyiluo/selfblog.git/info/refsfatal: HTTP request failed解决方法: git config --g 阅读全文
posted @ 2014-04-12 23:33 baoyiluo 阅读(763) 评论(0) 推荐(0) 编辑

python通过ip获取地址

摘要: # -*- coding: utf-8 -*-url = "http://ip.taobao.com/service/getIpInfo.php?ip="#查找IP地址defip_location(ip): data = urllib.urlopen(url + ip).read() datadict=json.loads(data) for oneinfo in datadict: if "code" == oneinfo: if datadict[oneinfo] == 0: return datadict["data"][&qu 阅读全文
posted @ 2014-04-12 15:16 baoyiluo 阅读(403) 评论(0) 推荐(0) 编辑