选择了一个基础款的vps安装的镜像选了熟悉的centos的最新版centos8,但是在安装screen的时候,却安装不了,提示: No match for argument: screen 本来以为是yum源里没有screen,还换到了阿里云的源,却依然不能安装。将系统换到centos7,却可以直接 ...
分类:
其他好文 时间:
2020-02-28 12:23:25
阅读次数:
150
一、最常用的匹配语法 re.match 从头开始匹配 re.search 匹配包含 re.findall 把所有匹配到的字符放到以列表中的元素返回 re.split 以匹配到的字符当做列表分隔符 re.sub 匹配字符并替换 二、常用正则表达式符号 '.' 默认匹配除\n之外的任意一个字符,若指定f ...
分类:
编程语言 时间:
2020-02-27 00:32:45
阅读次数:
97
Spring除了支持Schema方式配置AOP,还支持注解方式:使用@AspectJ风格的切面声明。 1 启用对@AspectJ的支持 Spring默认不支持@AspectJ风格的切面声明,为了支持需要使用如下配置: 这样Spring就能发现@AspectJ风格的切面并且将切面应用到目标对象。 2 ...
分类:
编程语言 时间:
2020-02-26 23:23:53
阅读次数:
150
a=torch.rand(32,1) a.expend(imgs.size()) >>>RuntimeError: The expanded size of the tensor (256) must match the existing size (32) at non-singleton dim ...
分类:
其他好文 时间:
2020-02-26 20:51:58
阅读次数:
233
```javascriptrouter.onError(error => { const pattern = /Loading chunk/g; const isChunkLoadFailed = error.message.match(pattern); const targetPath = ro... ...
分类:
其他好文 时间:
2020-02-26 20:28:28
阅读次数:
178
一、简介 依赖注入可以通过初始化方法(或构造函数)传递所需要的参数,或者通过属性(setter)传递。这里将对这两种方法进行讲解。 初始化方法注入: 属性注入: 一般更趋向于初始化注入,如果在初始化(构造函数)的时候没办法进行注入,才通过属性进行注入。在通过初始化注入的情况下,这些依赖可能仍然需要作 ...
分类:
其他好文 时间:
2020-02-26 01:24:49
阅读次数:
47
首先把界面显示出来,为了更加简单这是在相对布局中写的 1 <EditText 2 android:layout_width="match_parent" 3 android:layout_height="wrap_content" 4 android:id="@+id/et" 5 android:l ...
分类:
其他好文 时间:
2020-02-25 23:33:47
阅读次数:
120
https://www.jianshu.com/p/be46656ac73f https://blog.csdn.net/timothytt/article/details/86775114 ______________________________________________________ ...
分类:
其他好文 时间:
2020-02-24 16:56:32
阅读次数:
86
漏洞成因 使用 这种支持多语句执行的函数 使用PDO的方式进行数据查询,创建PDO实例时 设置为 时,可以执行多语句 bypass技巧 以[GYCTF2020]Blacklist为例 获取库名、表名、列名 show databases; show tables; show columns from ...
分类:
其他好文 时间:
2020-02-24 14:48:25
阅读次数:
117
1.获取用户输入的时间: var bagin = $('.input_one').val(); 2.验证时间格式是否正确:(验证通过返回时间戳格式,例如:(2017-01-01,2017,-,01,-,01),否则返回null) ar bagin_r = bagin.match(/^(\d{4})( ...
分类:
Web程序 时间:
2020-02-24 13:00:45
阅读次数:
67