There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:
其他好文 时间:
2020-05-16 15:13:55
阅读次数:
66
Q:今天有人问我lsof是怎么实现的? 然后当时在想要是我应该怎么实现? 通过每个进程的file_table list 出来!!! 实际上怎么出来的呢??strace lsof 结果可知 就是通过读取 /proc/pid/fdinfo 。。。。。。。。。。。。。。平时会用到proc/pid/ 却没有 ...
分类:
其他好文 时间:
2020-05-16 00:22:10
阅读次数:
75
短训练序列 Verilog代码 module short_generator( input wire FFT_CLK, input wire RESET, input wire SHORT_ACK, output reg [7:0] SHORT_RE, output reg [7:0] SHORT_ ...
分类:
其他好文 时间:
2020-05-15 23:00:30
阅读次数:
120
之前用了一个vue-element-admin做了一个小项目,里面用到了动态添加路由,动态展示侧边栏, 当我切换页面时,控制台总是警告提示路由重复,连续跳转几次页面后,控制台就被这些警告占满了, 于是处理一下 原因addRoutes 方法仅仅是帮你注入新的路由,并没有帮你剔除原有的其它路由! 我们先 ...
分类:
Web程序 时间:
2020-05-15 15:59:40
阅读次数:
200
[TOC] 模块 为了编写可维护的代码,我们把很多函数分组,分别放到不同的文件里,这样,每个文件包含的代码就相对较少,很多编程语言都采用这种组织代码的方式。在Python中,一个.py文件就称之为一个模块(Module)。 使用模块有什么好处? 当一个模块编写完毕,就可以被其他地方引用。我们在编写程 ...
分类:
编程语言 时间:
2020-05-15 14:03:22
阅读次数:
65
出现问题的原因是在执行python xxx.py 时系统找不到相关资源 Windows中: 由于我的Windows中没有装Spark,所以直接安装了Python的第三方包,pycharm中直接引用就行了 pip install pyspark Linux中: 我的是Ubuntu18.04,自己在里面 ...
分类:
其他好文 时间:
2020-05-15 09:58:55
阅读次数:
408
https://stackoverflow.com/questions/58547506/no module named index after install pyflann "pip install pyflann" ...
分类:
其他好文 时间:
2020-05-15 09:13:26
阅读次数:
66
vue-cli4之中默认没有vue.config.js,所以需要自己来创建配置。vue.config.js就是打包的一些配置。 这是一些比较基础的配置 module.exports = { // 公共路径(必须有的) publicPath: "./", // 输出文件目录 outputDir: "d ...
分类:
其他好文 时间:
2020-05-15 00:14:03
阅读次数:
441
$ npm install px2rem-loader npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, ...
分类:
其他好文 时间:
2020-05-15 00:02:59
阅读次数:
240
代码: public static void main(String[] args) { String str = "{\"bussDatas\":[{\"fieldDesc\":\"string\",\"isSelected\":0,\"optionType\":0,\"optionValue\" ...
分类:
编程语言 时间:
2020-05-14 22:34:06
阅读次数:
158