下午闲着无聊 用python写了个字典转MD5字典的脚本 import requestsimport hashlibdef baopo(script): print(u" 转化开始:") str=open(script).read() str_list=str.split('\n') print(s ...
分类:
编程语言 时间:
2021-04-20 15:25:35
阅读次数:
0
本文力求用最简的描述,演示C#开发和调用webapi。 所用的例子在.net5以及vs2019 v16.9.3中调试通过。 mvc框架实现的webapi和webapi框架的对比: 学过.net MVC的同学都知道,MVC中,c是可以返回字符串(多数是json字符串)的。因此,在不计体量的情况下,完全 ...
1.当前路由传递对象参数 (1)通过this.$router.push传递 var arr = JSON.stringify(this.user) this.$router.push({name:'home',params:{user:encodeURIComponent(arr)}}) this. ...
分类:
其他好文 时间:
2021-04-20 14:26:59
阅读次数:
0
golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso ...
分类:
Web程序 时间:
2021-04-20 14:21:08
阅读次数:
0
Makefile常用万能模板(包括静态链接库、动态链接库、可执行文件) 本文把makefile 分成了三份:生成可执行文件的makefile,生成静态链接库的makefile,生成动态链接库的makefile。 这些makefile都很简单,一般都是一看就会用,用法也很容易,只需要把它们拷贝到你的代 ...
分类:
其他好文 时间:
2021-04-20 14:07:04
阅读次数:
0
前端:"/xx?user="+JSON.stringify(rows) es5 后端 @RequestParam String user user = new String(user.getBytes("8859_1"),"utf8"); // 防止中文乱码 List<Map<String,Obje ...
分类:
其他好文 时间:
2021-04-19 14:33:34
阅读次数:
0
task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main(){ int x, n; srand(time(0)); for(n=1 ; n<=N; n++){ x = rand() % 10 ...
分类:
其他好文 时间:
2021-04-16 12:04:07
阅读次数:
0
// 上传首页数据设置、主题js文件export function uplaodTheme(data, fileName) { var dataString = JSON.stringify(data); var blob = new Blob([dataString], {type: "text/ ...
分类:
Web程序 时间:
2021-04-16 11:57:04
阅读次数:
0
【1】倒排索引 【1.1】倒排索引与正牌索引的对比 【1.2】倒排索引的核心组成 例子: 【1.3】ES的倒排索引 优劣 ES的 JSON 文档中的每个字段,都有自己的倒排索引 可以指定对某些字段不做索引 优点:节省存储空间 缺点:字段无法被搜索 【2】分词器 【2.1】分词器的组成 【2.2】ES ...
分类:
其他好文 时间:
2021-04-16 11:56:33
阅读次数:
0
1. 安装 Libreoffice sudo apt install libreoffice 2. 安装 Libreoffice SDK sudo apt install libreoffice-dev 3. 配置环境变量(临时) cd /usr/lib/libreoffice/sdk ./sets ...
分类:
系统相关 时间:
2021-04-16 11:43:05
阅读次数:
0