摘要: 1、登录百度地图api,地址:http://api.map.baidu.com/lbsapi/creatmap/index.html 2、设置你的地理位置 3、简单设置下地图功能。地图的宽度和高度根据网页空间的大小设置就可以。 4、设置地图信息标注,这个有利于查看地图的人一眼就看到自己在什么位置,而 阅读全文
posted @ 2016-10-09 16:24 宋不争 阅读(671) 评论(0) 推荐(0) 编辑
摘要: import urllib.requestresponse = urllib.request.urlopen('http://www.baidu.com')html = response.read()print(html) 上面的代码正常但是运行的时候结果遇到中文会以\xe7\x99\xbe\xe5 阅读全文
posted @ 2016-08-04 14:14 宋不争 阅读(1525) 评论(0) 推荐(0) 编辑