LCS 操作对象:两个长度不一定相等的字符串。 例题 string s, t; int f[maxn][maxn]; int main() { cin >> s >> t; int ls = s.length(), lt = t.length(); for (int i = 1; i <= ls; ...
分类:
其他好文 时间:
2021-06-29 15:57:12
阅读次数:
0
Nuxt.js实现简单路由配置 本文将实现的路由页面关系: 实现的效果截图: 实现的代码: 首页代码 <!--首页index.vue--> <template> <div> <h1>我是首页-home</h1> <ul> <li><nuxt-link :to="{ name: 'index' }"> ...
分类:
Web程序 时间:
2021-06-29 15:16:23
阅读次数:
0
前言 这是一篇拖更很久的博客,不知不觉InitQ在nuget下载量已经过15K了,奈何胸无点墨也不晓得怎么写(懒),随便在github上挂了个md,现在好好唠唠如何在redis里使用队列 队列缓存分布式 异步调优堆配置 (来自某位不知名码友) 诞生背景 redis在项目中使用的越来越频繁,通常我们是 ...
分类:
Web程序 时间:
2021-06-28 21:10:57
阅读次数:
0
direct(current time and current queue number, 25 queue number equals 1 minute) reverse(target time and current queue number, 25 queue number equals 1 ...
分类:
其他好文 时间:
2021-06-28 21:06:27
阅读次数:
0
最近在gpu上做实验比较频繁,故记录下常用命令,以便复制粘贴 1. 后台运行py文件,并保存日志 nohup python -u prepro_feats_gpu.py> frats.out 2>&1 & frats.out 为保存的日志文件名 2.查看日志文件 tail -f frats.out ...
分类:
系统相关 时间:
2021-06-28 20:45:56
阅读次数:
0
1、Maven依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.7.1</version> </dependency> <dependency> <gr ...
分类:
其他好文 时间:
2021-06-28 20:30:27
阅读次数:
0
一、简介 基于matlab计步 二、源代码 %对原始观测得到的数据进行获取 clc, clear; %加速度数组 accspe_data = []; time_record = []; fid=fopen('sensor_normal.txt', 'r', 'n', 'utf-8'); %初始赋值使 ...
分类:
其他好文 时间:
2021-06-28 20:19:46
阅读次数:
0
当满足某个条件的时候,才进行组件的注入 常见的如下: run.containsBean用于判断是否含有某个组件 System.out.println("++++++++++++++++++++++++++++++"); boolean tom = run.containsBean("tom"); S ...
分类:
编程语言 时间:
2021-06-28 20:10:39
阅读次数:
0
package main //程序的包名 /* import "fmt" import "time" */ import ( "fmt" "time" ) //main函数 func main() { //函数的{ 一定是 和函数名在同一行的,否则编译错误 //golang中的表达式,加";", 和 ...
分类:
其他好文 时间:
2021-06-28 20:07:48
阅读次数:
0
1、背景 最近做了一个测试项目-流量回放。我主要负责前端的工作。 该项目主要功能是回放线上的接口数据,用以进行自动化测试,毕竟线上的数据大,场景多。拿到这批数据测试用例后,无论是用来压测还是用来进行接口自动化价值都是很大的 流量回放的价值:通过记录线上流量,在开发或者测试环境回放,来发现系统是否能够 ...
分类:
其他好文 时间:
2021-06-28 20:01:35
阅读次数:
0