1.let 变量声明以及特性 声明变量 let a; let b, c, d; let e = 1; let f = 2, g = 3; 特性 1.不能重复声明 2.块级作用域 只在块级作用域有效 3.没有变量提升 4.不影响作用域链 2.const 常量声明以及特性 特性 1.必须有初始值 2.一 ...
分类:
其他好文 时间:
2020-10-08 19:52:58
阅读次数:
44
使用@Value一个个字段给值 @Component public class Man { @Value("${person.lastName}") private String lastName; @Value("12") private Integer age; @Value("false") ...
分类:
其他好文 时间:
2020-10-08 19:37:54
阅读次数:
21
联赛模拟测试9 A. 嚎叫响彻在贪婪的厂房 只看出来计算相邻两个数的差的公约数以判断是否是一个家族,没看出来可以贪心,就写了个60分的DP, 其实直接贪心做就好了,用set或map维护一下是否出现过就好了 B. 征途堆积出友情的永恒 考试的时候写出了DP式子,但没有进行优化 f[i] = Min(f ...
分类:
其他好文 时间:
2020-10-08 18:30:42
阅读次数:
16
一 使用SMTP模块发送邮件 import smtplib from email.mime.text import MIMEText from email.header import Header msg_from = '***@qq.com' # 发送方邮箱 passwd = '****' # 填 ...
分类:
编程语言 时间:
2020-10-08 18:14:22
阅读次数:
24
一、简介 Set类似于数组,但是它里面每一项的值是唯一的,没有重复的值,Set是一个构造函数,用来生成set的数据结构。 const arr = [1, 2, 3, 4, 5, 5, 4, 3, 2, 1]; const set = new Set(); arr.forEach(item => se ...
分类:
其他好文 时间:
2020-10-07 21:10:03
阅读次数:
28
1、准备测试数据10个样本,10个位点 [root@linuxprobe test]# ls test.map test.ped [root@linuxprobe test]# cat test.ped ## 10个样本,10行 DOR sample01 0 0 0 -9 G G C C G G G ...
分类:
其他好文 时间:
2020-10-07 20:45:17
阅读次数:
42
只需考虑每次加入后答案的增量,即增加的子串的答案。 发现有贡献的子串为 \(\text{border}\),那么每次就只需维护 \(\text{border}\) 集合的变化。若子串 \([1,pos]\) 为子串 \([1,i]\) 的一个 \(\text{border}\),则 \(s_{pos ...
分类:
其他好文 时间:
2020-10-06 21:16:44
阅读次数:
41
PBR下set ip next-hop和set ip default next-hop的区别
分类:
其他好文 时间:
2020-10-06 20:20:26
阅读次数:
28
[root@iZuf6h0pjb0u8rhjhiqmf8Z ~]# cat 1-install-docker.sh #!/bin/bash set -e yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-ma ...
分类:
其他好文 时间:
2020-10-05 22:19:28
阅读次数:
34
shuffle阶段 概念 shule 是 Mapreduce 的核心,它分布在 Mapreduce 的 map 阶段和 reduce 阶段。一般把从 Map 产生输出开始到 Reduce 取得数据作为输入之前的过程称作 shule。 一张图看懂Mapreduce全过程 概念解释 Collect阶段 ...
分类:
其他好文 时间:
2020-10-05 21:45:42
阅读次数:
32