- 博客(6)
- 收藏
- 关注
原创 图的邻接矩阵存储法
二维数组中的第i行第j列表示的就是顶点i到顶点j是否有边。1代表有边,无穷代表没有边,这里我们将自己到自己(即i=j,矩阵的对角线)设为0.
2018-04-20 10:09:44
382
原创 pycharm填坑
1,pycharm中解释器要勾上inherit local package2,找不到路径 把图中虚拟环境文件名重命名,也就是加个3
2018-03-14 23:25:48
237
原创 numpy 类型转换
Some operations, such as += and *=, act in place to modify an existing array rather than create a new one.>>> a = np.ones((2,3), dtype=int)>>> b = np.random.random((2,3))>>&g...
2018-02-27 16:36:11
9807
原创 python部分特点笔记
和静态语言不同,Python允许对实例变量绑定任何数据,也就是说,对于两个实例变量,虽然它们都是同一个类的不同实例,但拥有的变量名称都可能不同...
2018-02-26 22:19:35
155
原创 np.dot()与np.multiply区别
np.dot() performs a matrix-matrix or matrix-vector multiplication. This is different from np.multiply() and the * operator (which is equivalent to .* in Matlab/Octave), which performs an element-wise ...
2018-02-26 19:53:06
745
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人