gate 一年前做的. 求一个字符串由多少个循环节构成. KMP. 结论:若$n % (n-next[n]) \not= 0$则不是由循环节构成的. 否则,答案为$n/(n-next[n])$. code #include<cstdio> #include<iostream> #include<cm ...
分类:
其他好文 时间:
2020-07-01 09:51:14
阅读次数:
65
宝藏网站来源于b站UP主 “我是莫提" https://flatuicolors.com/ 前端配色参考网站 http://zhongguose.com/ 中国传统颜色网站 https://www.iconfont.cn/ 阿里矢量图标库网站 http://www.fontawesome.com.c ...
分类:
Web程序 时间:
2020-06-30 22:44:12
阅读次数:
93
《Windows Azure Platform 系列文章目录》 今天下午正好需要查询Azure资源,这里简单介绍一下: 1.查询Azure虚拟机信息: https://github.com/leizhang1984/AzureChinaResourceGraph/blob/master/1Query ...
分类:
其他好文 时间:
2020-06-30 22:31:12
阅读次数:
64
前言 Django 的查询语法难以简单的表达复杂的 WHERE 子句,对于对于这种情况, Django 提供了 extra() 方法。 extra() 能在 QuerySet 生成的SQL从句中注入新子句,这样可以完成复制的查询。 extra() extra 方法的源码在 models/query. ...
分类:
编程语言 时间:
2020-06-30 20:27:44
阅读次数:
70
1、用name和params传参(参数不会带在地址中,页面刷新参数会丢失) 对应路由配置 { path: '/detail', name: 'detail', component: detail } 跳转时传参 this.$router.push({ name: 'detail',// 页面名称 p ...
分类:
其他好文 时间:
2020-06-30 17:37:38
阅读次数:
67
前言 昨天迁移网站,今天突然出了Ueditor请求后台配置项http错误,上传功能将不能正常使用 步骤 看了下网络请求发现是config.json文件没有读取到,重新覆盖了该文件后恢复,不过不排除网络问题造成的 cp -rvf public/static/js/ue/config.json /dat ...
分类:
Web程序 时间:
2020-06-30 14:49:35
阅读次数:
310
http_build_query()函数使用方法 http_build_query()函数的作用是使用给出的关联(或下标)数组生成一个经过 URL-encode 的请求字符串。 写法格式:http_build_query ( mixed $query_data [, string $numeric_ ...
分类:
Web程序 时间:
2020-06-30 14:40:58
阅读次数:
91
准备 实体 @Data @Table(name = "task_apply") @Entity public class TaskApply { @Id @GeneratedValue @Column(name = "apply_id") private Long applyId; private ...
分类:
其他好文 时间:
2020-06-29 23:09:57
阅读次数:
144
今天看项目日志,发现报这个异常。 是tomcat容器的问题,因为出现了特殊字符,所以报异常了。Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 398 ...
分类:
编程语言 时间:
2020-06-29 18:33:31
阅读次数:
97
原文:https://www.cnblogs.com/Lau7/p/5451985.html 扩展类 public static class ExpressionExt { public static Expression<Func<T, bool>> And<T>(this Expression< ...