bug_x

导航

 

2018年10月8日

摘要: 1、 rand(2,4) #2*4 shape 矩阵 rand(d0, d1, …, dn) rand_sample() #随机生成矩阵 2、 prng = np.random.RandomState(123456789) # 定义局部种子prng.rand(2, 4) prng.chisquare 阅读全文
posted @ 2018-10-08 22:08 bug_x 阅读(176) 评论(0) 推荐(0) 编辑
 
摘要: numpy 常用函数: 矩阵: 阅读全文
posted @ 2018-10-08 14:41 bug_x 阅读(104) 评论(0) 推荐(0) 编辑
 
摘要: 摘自google. https://i.cnblogs.com/PostDone.aspx?postid=9753605&actiontip=%E4%BF%9D%E5%AD%98%E4%BF%AE%E6%94%B9%E6%88%90%E5%8A%9F 1、缩进 Tip 用4个空格来缩进代码 2、代码 阅读全文
posted @ 2018-10-08 13:49 bug_x 阅读(116) 评论(0) 推荐(0) 编辑
 
摘要: pandas 最常用的三种基本数据结构: 1、dataFrame: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html DataFrame相当于有表格(eg excel),有行表头和列表头 1.1初 阅读全文
posted @ 2018-10-08 13:27 bug_x 阅读(402) 评论(0) 推荐(0) 编辑
 
摘要: 1、连接符: + 2、基本类型: [] {} () list set :无序,不重复的集合 数据初始化: a = set('a','b'); 或者 {'1'} #只能初始化空的集合; 相关函数: 添加数据: a.add('a'); a.update(['... 阅读全文
posted @ 2018-10-08 12:03 bug_x 阅读(112) 评论(0) 推荐(0) 编辑
 
摘要: 最近遇到一个横向滚动条的问题: 官网链接: https://developer.mozilla.org/zh-CN/docs/Web/CSS/::-webkit-scrollbar 这个 ::-webkit-scrollbar CSS伪类选择器影响了一个元素的滚动条的样式 ::-webkit-scr 阅读全文
posted @ 2018-10-08 10:18 bug_x 阅读(1392) 评论(0) 推荐(0) 编辑