meshgrid的目的是生成两套行列数一致的矩阵,其中一个是行重复,一个是列复制;可以这么来理解,通过ravel()将矩阵数据拉平之后,就可以将这两套矩阵累加在一起,形成一个两行数据,要达到这个效果是需要行列相同,这样就能够理解meshgrid行为了。 比如下面的数据,是原始的两个数组: t01: ...
分类:
其他好文 时间:
2018-10-14 20:42:28
阅读次数:
220
leetcode 874 Robot Simulation 限制:32MB, 1s 描述 A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three po ...
分类:
其他好文 时间:
2018-10-14 19:15:18
阅读次数:
216
①CSS单位 1.fr:Tracks can be defined using any length unit. Grid also introduces an additional length unit to help us create flexible grid tracks. The ne ...
分类:
Web程序 时间:
2018-10-14 14:11:18
阅读次数:
182
错误版本: 条件判断顺序写错:grid[x][y] == '0' || x < 0 || x >= length || y < 0 || y >= width 这种写法要报数组越界的错误,因为grid[x][y]会先访问,实际上x、y这个时候可能就越界了,grid[x][y]必须放在这几个越界判断的 ...
分类:
其他好文 时间:
2018-10-14 00:35:34
阅读次数:
175
$(“#grid”).datagrid(“load”,{ a: $('#id').val(),b :$('#text').val() }); {} 里面可以 是序列化参数 $(“#grid”).datagrid(“reload”,{ }); $(“#grid”).datagrid(“loadData ...
分类:
其他好文 时间:
2018-10-13 16:10:27
阅读次数:
369
Hyperparameter optimization is a big part of deep learning. The reason is that neural networks are notoriously difficult to configure and there are a ...
分类:
编程语言 时间:
2018-10-13 16:08:30
阅读次数:
199
class Solution { public: int minPathSum(vector>& grid) { int row=grid.size(); int col=grid[0].size(); int N=1000; int D[N][N]; D[0][0]=grid[0][0]; ... ...
分类:
其他好文 时间:
2018-10-12 14:57:02
阅读次数:
138
Vuejs的component的数据进行了沙箱隔离,除js全局变量如Math, Date之类外无法访问用户自定义的变量,所以使用component写组件或嵌套组件时明白变量的访问非常重要 编译作用域 在看componnent的使用之前,来看下component编译作用域,明白作用域范围才能顺利写出想 ...
分类:
Web程序 时间:
2018-10-12 13:50:21
阅读次数:
227
CSS Grid Layout为CSS引入了一个二维网格系统。网格可用于布局主要页面区域或小型用户界面元素。 网格是一组交叉的水平和垂直线 - 一组定义列,其他行。元素可以放在网格上,以行或者列为标准。 grid布局的优点: 1:固定和灵活的轨道尺寸 2:可以使用行号,名称或通过定位网格区域将项目放 ...
分类:
Web程序 时间:
2018-10-12 01:20:21
阅读次数:
192
practise 1 2 3 4 5 6 .wrapper { display:grid; grid-template-columns: 80px 80px 80px; grid-template-rows: 80p... ...
分类:
其他好文 时间:
2018-10-11 23:44:01
阅读次数:
235