摘要: 实验环境: win7 python3.5 bs4 0.0.1 requests 2.19 实验日期:2018-08-07 爬取网站:http://www.xhsd.cn/ 现在的网站大多有复杂的交互,地方政府的网站又太简单,体现不出bs4的解析过程; http://www.xhsd.cn/ 这个网站 阅读全文
posted @ 2018-08-07 18:03 狂气科科 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 实验环境:win7 python3.5 request 2.19.1 时间:2018-08-07 一、爬取 http://china.nba.com/statistics/ 表格数据 在这个案例中,直接get("http://china.nba.com/statistics/ "), 是得不到以上那 阅读全文
posted @ 2018-08-07 14:56 狂气科科 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 实验环境: win7 python3.5 bokeh 0.13 效果: 原理: btn绑定一个函数callback ,在这个callback函数里更换图片对象的data_source 代码: from bokeh.models import ColumnDataSource,Buttonfrom b 阅读全文
posted @ 2018-08-06 15:26 狂气科科 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: 实验环境:win 7 python3.5.2 bokeh 0.13.0 时间:2018-08-06 一、bokeh 画线 1)正弦曲线 from bokeh.plotting import figure,showimport numpy as np x=np.linspace(-np.pi,np.p 阅读全文
posted @ 2018-08-06 15:16 狂气科科 阅读(1956) 评论(0) 推荐(0) 编辑